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)
commitbcbde0d449eda7afa8f63280b165c8300dbd00e2
treedbe6689bfee850c54006291e939718c685de1158
parent77e2af0312b12dccd5043a7cc9cd49ab6a212996
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