Skip to content

Commit ef11209

Browse files
sbrivio-rhdavem330
authored andcommitted
Revert "net/ipv6: Bail early if user only wants cloned entries"
This reverts commit 08e814c: as we are preparing to fix listing and dumping of IPv6 cached routes, we need to allow RTM_F_CLONED as a flag to match routes against while dumping them. Signed-off-by: Stefano Brivio <[email protected]> Reviewed-by: David Ahern <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ee28906 commit ef11209

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

net/ipv6/ip6_fib.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -573,13 +573,10 @@ static int inet6_dump_fib(struct sk_buff *skb, struct netlink_callback *cb)
573573
} else if (nlmsg_len(nlh) >= sizeof(struct rtmsg)) {
574574
struct rtmsg *rtm = nlmsg_data(nlh);
575575

576-
arg.filter.flags = rtm->rtm_flags & (RTM_F_PREFIX|RTM_F_CLONED);
576+
if (rtm->rtm_flags & RTM_F_PREFIX)
577+
arg.filter.flags = RTM_F_PREFIX;
577578
}
578579

579-
/* fib entries are never clones */
580-
if (arg.filter.flags & RTM_F_CLONED)
581-
goto out;
582-
583580
w = (void *)cb->args[2];
584581
if (!w) {
585582
/* New dump:

0 commit comments

Comments
 (0)