mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 22:21:21 +00:00
[RTNETLINK]: Use rtnl_unicast() for rtnetlink unicasts
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f8d8fda54a
commit
2942e90050
8 changed files with 20 additions and 24 deletions
|
@ -312,7 +312,8 @@ static void ipmr_destroy_unres(struct mfc_cache *c)
|
|||
e = NLMSG_DATA(nlh);
|
||||
e->error = -ETIMEDOUT;
|
||||
memset(&e->msg, 0, sizeof(e->msg));
|
||||
netlink_unicast(rtnl, skb, NETLINK_CB(skb).dst_pid, MSG_DONTWAIT);
|
||||
|
||||
rtnl_unicast(skb, NETLINK_CB(skb).pid);
|
||||
} else
|
||||
kfree_skb(skb);
|
||||
}
|
||||
|
@ -512,7 +513,6 @@ static void ipmr_cache_resolve(struct mfc_cache *uc, struct mfc_cache *c)
|
|||
|
||||
while((skb=__skb_dequeue(&uc->mfc_un.unres.unresolved))) {
|
||||
if (skb->nh.iph->version == 0) {
|
||||
int err;
|
||||
struct nlmsghdr *nlh = (struct nlmsghdr *)skb_pull(skb, sizeof(struct iphdr));
|
||||
|
||||
if (ipmr_fill_mroute(skb, c, NLMSG_DATA(nlh)) > 0) {
|
||||
|
@ -525,7 +525,8 @@ static void ipmr_cache_resolve(struct mfc_cache *uc, struct mfc_cache *c)
|
|||
e->error = -EMSGSIZE;
|
||||
memset(&e->msg, 0, sizeof(e->msg));
|
||||
}
|
||||
err = netlink_unicast(rtnl, skb, NETLINK_CB(skb).dst_pid, MSG_DONTWAIT);
|
||||
|
||||
rtnl_unicast(skb, NETLINK_CB(skb).pid);
|
||||
} else
|
||||
ip_mr_forward(skb, c, 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue