diff options
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r-- | net/ipv4/route.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index d39edf16d607..940f4f4cb201 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -2136,7 +2136,7 @@ struct rtable *ip_route_output_flow(struct net *net, struct flowi4 *flp4, | |||
2136 | EXPORT_SYMBOL_GPL(ip_route_output_flow); | 2136 | EXPORT_SYMBOL_GPL(ip_route_output_flow); |
2137 | 2137 | ||
2138 | static int rt_fill_info(struct net *net, __be32 dst, __be32 src, | 2138 | static int rt_fill_info(struct net *net, __be32 dst, __be32 src, |
2139 | struct flowi4 *fl4, struct sk_buff *skb, u32 pid, | 2139 | struct flowi4 *fl4, struct sk_buff *skb, u32 portid, |
2140 | u32 seq, int event, int nowait, unsigned int flags) | 2140 | u32 seq, int event, int nowait, unsigned int flags) |
2141 | { | 2141 | { |
2142 | struct rtable *rt = skb_rtable(skb); | 2142 | struct rtable *rt = skb_rtable(skb); |
@@ -2146,7 +2146,7 @@ static int rt_fill_info(struct net *net, __be32 dst, __be32 src, | |||
2146 | u32 error; | 2146 | u32 error; |
2147 | u32 metrics[RTAX_MAX]; | 2147 | u32 metrics[RTAX_MAX]; |
2148 | 2148 | ||
2149 | nlh = nlmsg_put(skb, pid, seq, event, sizeof(*r), flags); | 2149 | nlh = nlmsg_put(skb, portid, seq, event, sizeof(*r), flags); |
2150 | if (nlh == NULL) | 2150 | if (nlh == NULL) |
2151 | return -EMSGSIZE; | 2151 | return -EMSGSIZE; |
2152 | 2152 | ||
@@ -2306,12 +2306,12 @@ static int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh, void | |||
2306 | rt->rt_flags |= RTCF_NOTIFY; | 2306 | rt->rt_flags |= RTCF_NOTIFY; |
2307 | 2307 | ||
2308 | err = rt_fill_info(net, dst, src, &fl4, skb, | 2308 | err = rt_fill_info(net, dst, src, &fl4, skb, |
2309 | NETLINK_CB(in_skb).pid, nlh->nlmsg_seq, | 2309 | NETLINK_CB(in_skb).portid, nlh->nlmsg_seq, |
2310 | RTM_NEWROUTE, 0, 0); | 2310 | RTM_NEWROUTE, 0, 0); |
2311 | if (err <= 0) | 2311 | if (err <= 0) |
2312 | goto errout_free; | 2312 | goto errout_free; |
2313 | 2313 | ||
2314 | err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).pid); | 2314 | err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); |
2315 | errout: | 2315 | errout: |
2316 | return err; | 2316 | return err; |
2317 | 2317 | ||