|
@@ -586,10 +586,13 @@ static int inet6_dump_fib(struct sk_buff *skb, struct netlink_callback *cb)
|
|
} else if (nlmsg_len(nlh) >= sizeof(struct rtmsg)) {
|
|
} else if (nlmsg_len(nlh) >= sizeof(struct rtmsg)) {
|
|
struct rtmsg *rtm = nlmsg_data(nlh);
|
|
struct rtmsg *rtm = nlmsg_data(nlh);
|
|
|
|
|
|
- if (rtm->rtm_flags & RTM_F_PREFIX)
|
|
|
|
- arg.filter.flags = RTM_F_PREFIX;
|
|
|
|
|
|
+ arg.filter.flags = rtm->rtm_flags & (RTM_F_PREFIX|RTM_F_CLONED);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /* fib entries are never clones */
|
|
|
|
+ if (arg.filter.flags & RTM_F_CLONED)
|
|
|
|
+ return skb->len;
|
|
|
|
+
|
|
w = (void *)cb->args[2];
|
|
w = (void *)cb->args[2];
|
|
if (!w) {
|
|
if (!w) {
|
|
/* New dump:
|
|
/* New dump:
|