]> git.baikalelectronics.ru Git - kernel.git/commit
net: netlink: virtual tap device management
authorDaniel Borkmann <dborkman@redhat.com>
Fri, 21 Jun 2013 17:38:07 +0000 (19:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Jun 2013 23:39:05 +0000 (16:39 -0700)
commitdf5858822d9cc7448d8b032f0aac4074d4414c8f
treedbe6689bfee850c54006291e939718c685de1158
parent3c1814f6ea442e96463dab24dc97ed70fd76de63
net: netlink: virtual tap device management

Similarly to the networking receive path with ptype_all taps, we add
the possibility to register netdevices that are for ARPHRD_NETLINK to
the netlink subsystem, so that those can be used for netlink analyzers
resp. debuggers. We do not offer a direct callback function as out-of-tree
modules could do crap with it. Instead, a netdevice must be registered
properly and only receives a clone, managed by the netlink layer. Symbols
are exported as GPL-only.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netlink.h
net/netlink/af_netlink.c