mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
[NETFILTER]: nfnetlink: use nlmsg_notify()
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
fdf708322d
commit
dd82185f2c
1 changed files with 1 additions and 10 deletions
|
@ -148,16 +148,7 @@ EXPORT_SYMBOL_GPL(nfnetlink_has_listeners);
|
|||
|
||||
int nfnetlink_send(struct sk_buff *skb, u32 pid, unsigned group, int echo)
|
||||
{
|
||||
int err = 0;
|
||||
|
||||
NETLINK_CB(skb).dst_group = group;
|
||||
if (echo)
|
||||
atomic_inc(&skb->users);
|
||||
netlink_broadcast(nfnl, skb, pid, group, gfp_any());
|
||||
if (echo)
|
||||
err = netlink_unicast(nfnl, skb, pid, MSG_DONTWAIT);
|
||||
|
||||
return err;
|
||||
return nlmsg_notify(nfnl, skb, pid, group, echo, gfp_any());
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(nfnetlink_send);
|
||||
|
||||
|
|
Loading…
Reference in a new issue