Re: [PATCH net-next 2/2] tun: enable socket system calls

2014-12-26 Thread Alex Gartrell
Hello Jason, Thanks for commenting. On 12/26/14 4:43 AM, Jason Wang wrote: On 12/26/2014 02:50 PM, Alex Gartrell wrote: By setting private_data to a socket and private_data_is_socket to true, we can use the socket syscalls. We also can't just blindly use private_data anymore, so there's a __

Re: [PATCH net-next 2/2] tun: enable socket system calls

2014-12-26 Thread Jason Wang
On 12/26/2014 02:50 PM, Alex Gartrell wrote: > By setting private_data to a socket and private_data_is_socket to true, we > can use the socket syscalls. We also can't just blindly use private_data > anymore, so there's a __tun_file_get function that returns the container_of > private_data appropr

[PATCH net-next 2/2] tun: enable socket system calls

2014-12-25 Thread Alex Gartrell
By setting private_data to a socket and private_data_is_socket to true, we can use the socket syscalls. We also can't just blindly use private_data anymore, so there's a __tun_file_get function that returns the container_of private_data appropriately. Signed-off-by: Alex Gartrell --- drivers/ne