netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] tun: support socket system calls
@ 2014-12-26  6:50 Alex Gartrell
  2014-12-26  6:50 ` [PATCH net-next 1/2] socket: Allow external sockets to use socket syscalls Alex Gartrell
  2014-12-26  6:50 ` [PATCH net-next 2/2] tun: enable socket system calls Alex Gartrell
  0 siblings, 2 replies; 9+ messages in thread
From: Alex Gartrell @ 2014-12-26  6:50 UTC (permalink / raw)
  To: davem, herbert; +Cc: netdev, linux-kernel, kernel-team, Alex Gartrell

There is an underlying socket object in struct tun that isn't accessible,
so if you try to do a recvmmsg on a tun file descriptor you'll get an
error. This small patchset allows external file objects to claim socket
status and enables it for tun_files.

Alex Gartrell (2):
  socket: Allow external sockets to use socket syscalls
  tun: enable socket system calls

 drivers/net/tun.c  | 34 ++++++++++++++++++++++------------
 include/linux/fs.h |  2 +-
 net/socket.c       |  3 ++-
 3 files changed, 25 insertions(+), 14 deletions(-)

-- 
Alex Gartrell <agartrell@fb.com>

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-12-26 20:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-26  6:50 [PATCH net-next 0/2] tun: support socket system calls Alex Gartrell
2014-12-26  6:50 ` [PATCH net-next 1/2] socket: Allow external sockets to use socket syscalls Alex Gartrell
2014-12-26  9:45   ` Jason Wang
2014-12-26 19:26     ` Alex Gartrell
2014-12-26 19:56   ` Al Viro
2014-12-26 19:59     ` Alex Gartrell
2014-12-26  6:50 ` [PATCH net-next 2/2] tun: enable socket system calls Alex Gartrell
2014-12-26  9:43   ` Jason Wang
2014-12-26 19:16     ` Alex Gartrell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).