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/core | |
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/core')
-rw-r--r-- | net/core/rtnetlink.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index a1b783a6afc6..e02fa6a33f42 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c | |||
@@ -166,6 +166,11 @@ int rtnetlink_send(struct sk_buff *skb, u32 pid, unsigned group, int echo) | |||
166 | return err; | 166 | return err; |
167 | } | 167 | } |
168 | 168 | ||
169 | int rtnl_unicast(struct sk_buff *skb, u32 pid) | ||
170 | { | ||
171 | return nlmsg_unicast(rtnl, skb, pid); | ||
172 | } | ||
173 | |||
169 | int rtnetlink_put_metrics(struct sk_buff *skb, u32 *metrics) | 174 | int rtnetlink_put_metrics(struct sk_buff *skb, u32 *metrics) |
170 | { | 175 | { |
171 | struct rtattr *mx = (struct rtattr*)skb->tail; | 176 | struct rtattr *mx = (struct rtattr*)skb->tail; |
@@ -574,9 +579,7 @@ static int rtnl_getlink(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg) | |||
574 | goto errout; | 579 | goto errout; |
575 | } | 580 | } |
576 | 581 | ||
577 | err = netlink_unicast(rtnl, skb, NETLINK_CB(skb).pid, MSG_DONTWAIT); | 582 | err = rtnl_unicast(skb, NETLINK_CB(skb).pid); |
578 | if (err > 0) | ||
579 | err = 0; | ||
580 | errout: | 583 | errout: |
581 | kfree(iw_buf); | 584 | kfree(iw_buf); |
582 | dev_put(dev); | 585 | dev_put(dev); |
@@ -825,3 +828,4 @@ EXPORT_SYMBOL(rtnl); | |||
825 | EXPORT_SYMBOL(rtnl_lock); | 828 | EXPORT_SYMBOL(rtnl_lock); |
826 | EXPORT_SYMBOL(rtnl_trylock); | 829 | EXPORT_SYMBOL(rtnl_trylock); |
827 | EXPORT_SYMBOL(rtnl_unlock); | 830 | EXPORT_SYMBOL(rtnl_unlock); |
831 | EXPORT_SYMBOL(rtnl_unicast); | ||