[NETLINK]: Convert netlink users to use group numbers instead of bitmasks
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d629b836d1
commit
ac6d439d20
27 changed files with 183 additions and 91 deletions
|
@ -752,16 +752,16 @@ static void rtmsg_ifa(int event, struct dn_ifaddr *ifa)
|
|||
|
||||
skb = alloc_skb(size, GFP_KERNEL);
|
||||
if (!skb) {
|
||||
netlink_set_err(rtnl, 0, RTMGRP_DECnet_IFADDR, ENOBUFS);
|
||||
netlink_set_err(rtnl, 0, RTNLGRP_DECnet_IFADDR, ENOBUFS);
|
||||
return;
|
||||
}
|
||||
if (dn_dev_fill_ifaddr(skb, ifa, 0, 0, event, 0) < 0) {
|
||||
kfree_skb(skb);
|
||||
netlink_set_err(rtnl, 0, RTMGRP_DECnet_IFADDR, EINVAL);
|
||||
netlink_set_err(rtnl, 0, RTNLGRP_DECnet_IFADDR, EINVAL);
|
||||
return;
|
||||
}
|
||||
NETLINK_CB(skb).dst_groups = RTMGRP_DECnet_IFADDR;
|
||||
netlink_broadcast(rtnl, skb, 0, RTMGRP_DECnet_IFADDR, GFP_KERNEL);
|
||||
NETLINK_CB(skb).dst_group = RTNLGRP_DECnet_IFADDR;
|
||||
netlink_broadcast(rtnl, skb, 0, RTNLGRP_DECnet_IFADDR, GFP_KERNEL);
|
||||
}
|
||||
|
||||
static int dn_dev_dump_ifaddr(struct sk_buff *skb, struct netlink_callback *cb)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue