summaryrefslogtreecommitdiff
path: root/net/ipv4/fib_frontend.c
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2006-08-17 18:15:17 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 14:55:05 -0700
commitbe403ea1856f1428b5912b42184acbba808c41d6 (patch)
tree53b7ae4a3d07dd6bcf84f01963aaa32dba2b3a45 /net/ipv4/fib_frontend.c
parent4e902c57417c4c285b98ba2722468d1c3ed83d1b (diff)
downloadlinux-rpi3-be403ea1856f1428b5912b42184acbba808c41d6.tar.gz
linux-rpi3-be403ea1856f1428b5912b42184acbba808c41d6.tar.bz2
linux-rpi3-be403ea1856f1428b5912b42184acbba808c41d6.zip
[IPv4]: Convert FIB dumping to use new netlink api
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_frontend.c')
-rw-r--r--net/ipv4/fib_frontend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c
index acc18bdf2dee..d537c933abe3 100644
--- a/net/ipv4/fib_frontend.c
+++ b/net/ipv4/fib_frontend.c
@@ -591,8 +591,8 @@ int inet_dump_fib(struct sk_buff *skb, struct netlink_callback *cb)
struct hlist_node *node;
int dumped = 0;
- if (NLMSG_PAYLOAD(cb->nlh, 0) >= sizeof(struct rtmsg) &&
- ((struct rtmsg*)NLMSG_DATA(cb->nlh))->rtm_flags&RTM_F_CLONED)
+ if (nlmsg_len(cb->nlh) >= sizeof(struct rtmsg) &&
+ ((struct rtmsg *) nlmsg_data(cb->nlh))->rtm_flags & RTM_F_CLONED)
return ip_rt_dump(skb, cb);
s_h = cb->args[0];