aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/rtnetlink.c
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2006-08-15 03:30:25 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 17:54:48 -0400
commit2942e90050569525628a9f34e0daaa9b661b49cc (patch)
treefc6acc11514e64ff9efc31bdc1bb458232206642 /net/core/rtnetlink.c
parentf8d8fda54a1bfcf8cf829e44c494b2b4582819aa (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/rtnetlink.c')
-rw-r--r--net/core/rtnetlink.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index a1b783a6afc..e02fa6a33f4 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
169int rtnl_unicast(struct sk_buff *skb, u32 pid)
170{
171 return nlmsg_unicast(rtnl, skb, pid);
172}
173
169int rtnetlink_put_metrics(struct sk_buff *skb, u32 *metrics) 174int 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;
580errout: 583errout:
581 kfree(iw_buf); 584 kfree(iw_buf);
582 dev_put(dev); 585 dev_put(dev);
@@ -825,3 +828,4 @@ EXPORT_SYMBOL(rtnl);
825EXPORT_SYMBOL(rtnl_lock); 828EXPORT_SYMBOL(rtnl_lock);
826EXPORT_SYMBOL(rtnl_trylock); 829EXPORT_SYMBOL(rtnl_trylock);
827EXPORT_SYMBOL(rtnl_unlock); 830EXPORT_SYMBOL(rtnl_unlock);
831EXPORT_SYMBOL(rtnl_unicast);