aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/route.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r--net/ipv6/route.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index 339d921cf3b6..a81c6790a648 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -1874,7 +1874,7 @@ static struct rt6_info *rt6_add_route_info(struct net *net,
1874 .fc_dst_len = prefixlen, 1874 .fc_dst_len = prefixlen,
1875 .fc_flags = RTF_GATEWAY | RTF_ADDRCONF | RTF_ROUTEINFO | 1875 .fc_flags = RTF_GATEWAY | RTF_ADDRCONF | RTF_ROUTEINFO |
1876 RTF_UP | RTF_PREF(pref), 1876 RTF_UP | RTF_PREF(pref),
1877 .fc_nlinfo.pid = 0, 1877 .fc_nlinfo.portid = 0,
1878 .fc_nlinfo.nlh = NULL, 1878 .fc_nlinfo.nlh = NULL,
1879 .fc_nlinfo.nl_net = net, 1879 .fc_nlinfo.nl_net = net,
1880 }; 1880 };
@@ -1924,7 +1924,7 @@ struct rt6_info *rt6_add_dflt_router(const struct in6_addr *gwaddr,
1924 .fc_ifindex = dev->ifindex, 1924 .fc_ifindex = dev->ifindex,
1925 .fc_flags = RTF_GATEWAY | RTF_ADDRCONF | RTF_DEFAULT | 1925 .fc_flags = RTF_GATEWAY | RTF_ADDRCONF | RTF_DEFAULT |
1926 RTF_UP | RTF_EXPIRES | RTF_PREF(pref), 1926 RTF_UP | RTF_EXPIRES | RTF_PREF(pref),
1927 .fc_nlinfo.pid = 0, 1927 .fc_nlinfo.portid = 0,
1928 .fc_nlinfo.nlh = NULL, 1928 .fc_nlinfo.nlh = NULL,
1929 .fc_nlinfo.nl_net = dev_net(dev), 1929 .fc_nlinfo.nl_net = dev_net(dev),
1930 }; 1930 };
@@ -2285,7 +2285,7 @@ static int rtm_to_fib6_config(struct sk_buff *skb, struct nlmsghdr *nlh,
2285 if (rtm->rtm_type == RTN_LOCAL) 2285 if (rtm->rtm_type == RTN_LOCAL)
2286 cfg->fc_flags |= RTF_LOCAL; 2286 cfg->fc_flags |= RTF_LOCAL;
2287 2287
2288 cfg->fc_nlinfo.pid = NETLINK_CB(skb).pid; 2288 cfg->fc_nlinfo.portid = NETLINK_CB(skb).portid;
2289 cfg->fc_nlinfo.nlh = nlh; 2289 cfg->fc_nlinfo.nlh = nlh;
2290 cfg->fc_nlinfo.nl_net = sock_net(skb->sk); 2290 cfg->fc_nlinfo.nl_net = sock_net(skb->sk);
2291 2291
@@ -2376,7 +2376,7 @@ static inline size_t rt6_nlmsg_size(void)
2376static int rt6_fill_node(struct net *net, 2376static int rt6_fill_node(struct net *net,
2377 struct sk_buff *skb, struct rt6_info *rt, 2377 struct sk_buff *skb, struct rt6_info *rt,
2378 struct in6_addr *dst, struct in6_addr *src, 2378 struct in6_addr *dst, struct in6_addr *src,
2379 int iif, int type, u32 pid, u32 seq, 2379 int iif, int type, u32 portid, u32 seq,
2380 int prefix, int nowait, unsigned int flags) 2380 int prefix, int nowait, unsigned int flags)
2381{ 2381{
2382 struct rtmsg *rtm; 2382 struct rtmsg *rtm;
@@ -2392,7 +2392,7 @@ static int rt6_fill_node(struct net *net,
2392 } 2392 }
2393 } 2393 }
2394 2394
2395 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*rtm), flags); 2395 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*rtm), flags);
2396 if (!nlh) 2396 if (!nlh)
2397 return -EMSGSIZE; 2397 return -EMSGSIZE;
2398 2398
@@ -2537,7 +2537,7 @@ int rt6_dump_route(struct rt6_info *rt, void *p_arg)
2537 2537
2538 return rt6_fill_node(arg->net, 2538 return rt6_fill_node(arg->net,
2539 arg->skb, rt, NULL, NULL, 0, RTM_NEWROUTE, 2539 arg->skb, rt, NULL, NULL, 0, RTM_NEWROUTE,
2540 NETLINK_CB(arg->cb->skb).pid, arg->cb->nlh->nlmsg_seq, 2540 NETLINK_CB(arg->cb->skb).portid, arg->cb->nlh->nlmsg_seq,
2541 prefix, 0, NLM_F_MULTI); 2541 prefix, 0, NLM_F_MULTI);
2542} 2542}
2543 2543
@@ -2617,14 +2617,14 @@ static int inet6_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr* nlh, void
2617 skb_dst_set(skb, &rt->dst); 2617 skb_dst_set(skb, &rt->dst);
2618 2618
2619 err = rt6_fill_node(net, skb, rt, &fl6.daddr, &fl6.saddr, iif, 2619 err = rt6_fill_node(net, skb, rt, &fl6.daddr, &fl6.saddr, iif,
2620 RTM_NEWROUTE, NETLINK_CB(in_skb).pid, 2620 RTM_NEWROUTE, NETLINK_CB(in_skb).portid,
2621 nlh->nlmsg_seq, 0, 0, 0); 2621 nlh->nlmsg_seq, 0, 0, 0);
2622 if (err < 0) { 2622 if (err < 0) {
2623 kfree_skb(skb); 2623 kfree_skb(skb);
2624 goto errout; 2624 goto errout;
2625 } 2625 }
2626 2626
2627 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).pid); 2627 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid);
2628errout: 2628errout:
2629 return err; 2629 return err;
2630} 2630}
@@ -2644,14 +2644,14 @@ void inet6_rt_notify(int event, struct rt6_info *rt, struct nl_info *info)
2644 goto errout; 2644 goto errout;
2645 2645
2646 err = rt6_fill_node(net, skb, rt, NULL, NULL, 0, 2646 err = rt6_fill_node(net, skb, rt, NULL, NULL, 0,
2647 event, info->pid, seq, 0, 0, 0); 2647 event, info->portid, seq, 0, 0, 0);
2648 if (err < 0) { 2648 if (err < 0) {
2649 /* -EMSGSIZE implies BUG in rt6_nlmsg_size() */ 2649 /* -EMSGSIZE implies BUG in rt6_nlmsg_size() */
2650 WARN_ON(err == -EMSGSIZE); 2650 WARN_ON(err == -EMSGSIZE);
2651 kfree_skb(skb); 2651 kfree_skb(skb);
2652 goto errout; 2652 goto errout;
2653 } 2653 }
2654 rtnl_notify(skb, net, info->pid, RTNLGRP_IPV6_ROUTE, 2654 rtnl_notify(skb, net, info->portid, RTNLGRP_IPV6_ROUTE,
2655 info->nlh, gfp_any()); 2655 info->nlh, gfp_any());
2656 return; 2656 return;
2657errout: 2657errout: