Pablo Neira Ayuso
a31f2d17b3
netlink: add netlink_kernel_cfg parameter to netlink_kernel_create
...
This patch adds the following structure:
struct netlink_kernel_cfg {
unsigned int groups;
void (*input)(struct sk_buff *skb);
struct mutex *cb_mutex;
};
That can be passed to netlink_kernel_create to set optional configurations
for netlink kernel sockets.
I've populated this structure by looking for NULL and zero parameters at the
existing code. The remaining parameters that always need to be set are still
left in the original interface.
That includes optional parameters for the netlink socket creation. This allows
easy extensibility of this interface in the future.
This patch also adapts all callers to use this new interface.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-06-29 16:46:02 -07:00
..
9p
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2012-06-28 17:37:00 -07:00
802
tokenring: delete all remaining driver support
2012-05-15 20:23:16 -04:00
8021q
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2012-05-16 22:17:37 -04:00
appletalk
appletalk: Remove out of date message in printk
2012-06-07 13:11:59 -07:00
atm
net: Remove casts to same type
2012-06-04 11:45:11 -04:00
ax25
net: use consume_skb() in place of kfree_skb()
2012-06-04 11:27:40 -04:00
batman-adv
batman-adv: Prefix main defines with BATADV_
2012-06-28 08:45:05 +02:00
bluetooth
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
2012-06-29 12:07:37 -04:00
bridge
netlink: add netlink_kernel_cfg parameter to netlink_kernel_create
2012-06-29 16:46:02 -07:00
caif
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2012-06-28 17:37:00 -07:00
can
canfd: add support for CAN FD in CAN_RAW sockets
2012-06-19 21:40:08 +02:00
ceph
libceph: flush msgr queue during mon_client shutdown
2012-06-20 07:43:50 -05:00
core
netlink: add netlink_kernel_cfg parameter to netlink_kernel_create
2012-06-29 16:46:02 -07:00
dcb
net: dcb: fix small regression in __dcbnl_pg_setcfg()
2012-06-21 15:06:00 -07:00
dccp
ipv4: tcp: dont cache output dst for syncookies
2012-06-22 21:47:33 -07:00
decnet
netlink: add netlink_kernel_cfg parameter to netlink_kernel_create
2012-06-29 16:46:02 -07:00
dns_resolver
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
2012-05-21 20:27:36 -07:00
dsa
dsa: Convert compare_ether_addr to ether_addr_equal
2012-05-09 20:49:19 -04:00
ethernet
net, drivers/net: Convert compare_ether_addr_64bits to ether_addr_equal_64bits
2012-05-10 23:33:01 -04:00
ieee802154
net: Use NLMSG_DEFAULT_SIZE in combination with nlmsg_new()
2012-06-28 17:56:43 -07:00
ipv4
netlink: add netlink_kernel_cfg parameter to netlink_kernel_create
2012-06-29 16:46:02 -07:00
ipv6
ipv6_tunnel: Allow receiving packets on the fallback tunnel if they pass sanity checks
2012-06-29 00:52:32 -07:00
ipx
ipx: Remove spurious NULL checking in ipx_ioctl().
2012-05-19 00:51:04 -04:00
irda
net: Remove casts to same type
2012-06-04 11:45:11 -04:00
iucv
net: remove skb_orphan_try()
2012-06-15 15:30:15 -07:00
key
net: cleanup unsigned to unsigned int
2012-04-15 12:44:40 -04:00
l2tp
net: l2tp_eth: provide tx_dropped counter
2012-06-29 00:52:32 -07:00
lapb
lapb: Neaten debugging
2012-05-17 18:45:20 -04:00
llc
net: include/net/sock.h cleanup
2012-05-17 04:50:21 -04:00
mac80211
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
2012-06-29 12:42:14 -04:00
mac802154
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2012-06-28 17:37:00 -07:00
netfilter
netlink: add netlink_kernel_cfg parameter to netlink_kernel_create
2012-06-29 16:46:02 -07:00
netlabel
netlabel: use GFP flags from caller instead of GFP_ATOMIC
2012-03-22 19:29:57 -04:00
netlink
netlink: add netlink_kernel_cfg parameter to netlink_kernel_create
2012-06-29 16:46:02 -07:00
netrom
net: Convert all sysctl registrations to register_net_sysctl
2012-04-20 21:22:30 -04:00
nfc
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
2012-06-29 12:07:37 -04:00
openvswitch
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2012-05-16 22:17:37 -04:00
packet
net: added support for 40GbE link.
2012-06-27 15:42:24 -07:00
phonet
net: remove my future former mail address
2012-06-17 16:29:38 -07:00
rds
rds_rdma: don't assume infiniband device is PCI
2012-05-29 17:30:07 -04:00
rfkill
rfkill: Add the capability to switch all devices of all type in __rfkill_switch_all().
2012-06-06 15:18:17 -04:00
rose
net: Convert all sysctl registrations to register_net_sysctl
2012-04-20 21:22:30 -04:00
rxrpc
ipv4: Kill ip_rt_frag_needed().
2012-06-11 02:08:59 -07:00
sched
pkt_sched: sch_api: Move away from NLMSG_NEW().
2012-06-26 21:54:15 -07:00
sctp
sctp: fix warning when compiling without IPv6
2012-06-19 00:26:26 -07:00
sunrpc
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2012-06-28 17:37:00 -07:00
tipc
net: Remove casts to same type
2012-06-04 11:45:11 -04:00
unix
unix_diag: Do not use RTA_PUT() macros
2012-06-27 15:36:43 -07:00
wanrouter
net/wanrouter: Deprecate and schedule for removal
2012-05-24 16:22:53 -04:00
wimax
net: cleanup unsigned to unsigned int
2012-04-15 12:44:40 -04:00
wireless
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
2012-06-29 12:42:14 -04:00
x25
net: add a limit parameter to sk_add_backlog()
2012-04-23 22:28:28 -04:00
xfrm
netlink: add netlink_kernel_cfg parameter to netlink_kernel_create
2012-06-29 16:46:02 -07:00
compat.c
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
2012-05-21 20:27:36 -07:00
Kconfig
net: drop NET dependency from HAVE_BPF_JIT
2012-05-21 12:50:12 -07:00
Makefile
econet: remove ancient bug ridden protocol
2012-05-18 01:35:08 -04:00
nonet.c
socket.c
Merge branch 'for-3.5' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu
2012-05-22 17:37:47 -07:00
sysctl_net.c
net: delete all instances of special processing for token ring
2012-05-15 20:14:35 -04:00