diff options
author | Thomas Graf <tgraf@suug.ch> | 2006-08-15 03:30:25 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 17:54:48 -0400 |
commit | 2942e90050569525628a9f34e0daaa9b661b49cc (patch) | |
tree | fc6acc11514e64ff9efc31bdc1bb458232206642 /net/ipv6 | |
parent | f8d8fda54a1bfcf8cf829e44c494b2b4582819aa (diff) |
[RTNETLINK]: Use rtnl_unicast() for rtnetlink unicasts
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/addrconf.c | 4 | ||||
-rw-r--r-- | net/ipv6/route.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 9ba1e811ba50..4f991a2234d0 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -3268,9 +3268,7 @@ static int inet6_rtm_getaddr(struct sk_buff *in_skb, | |||
3268 | goto out_free; | 3268 | goto out_free; |
3269 | } | 3269 | } |
3270 | 3270 | ||
3271 | err = netlink_unicast(rtnl, skb, NETLINK_CB(in_skb).pid, MSG_DONTWAIT); | 3271 | err = rtnl_unicast(skb, NETLINK_CB(in_skb).pid); |
3272 | if (err > 0) | ||
3273 | err = 0; | ||
3274 | out: | 3272 | out: |
3275 | in6_ifa_put(ifa); | 3273 | in6_ifa_put(ifa); |
3276 | return err; | 3274 | return err; |
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 9ce28277f47f..024c8e26c2ec 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -2044,9 +2044,7 @@ int inet6_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr* nlh, void *arg) | |||
2044 | goto out_free; | 2044 | goto out_free; |
2045 | } | 2045 | } |
2046 | 2046 | ||
2047 | err = netlink_unicast(rtnl, skb, NETLINK_CB(in_skb).pid, MSG_DONTWAIT); | 2047 | err = rtnl_unicast(skb, NETLINK_CB(in_skb).pid); |
2048 | if (err > 0) | ||
2049 | err = 0; | ||
2050 | out: | 2048 | out: |
2051 | return err; | 2049 | return err; |
2052 | out_free: | 2050 | out_free: |