mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 22:54:05 +08:00
Revert "net/ipv6: Bail early if user only wants cloned entries"
This reverts commit 08e814c9e8
: 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 <sbrivio@redhat.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ee28906fd7
commit
ef11209d42
@ -573,13 +573,10 @@ 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);
|
||||||
|
|
||||||
arg.filter.flags = rtm->rtm_flags & (RTM_F_PREFIX|RTM_F_CLONED);
|
if (rtm->rtm_flags & RTM_F_PREFIX)
|
||||||
|
arg.filter.flags = RTM_F_PREFIX;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* fib entries are never clones */
|
|
||||||
if (arg.filter.flags & RTM_F_CLONED)
|
|
||||||
goto out;
|
|
||||||
|
|
||||||
w = (void *)cb->args[2];
|
w = (void *)cb->args[2];
|
||||||
if (!w) {
|
if (!w) {
|
||||||
/* New dump:
|
/* New dump:
|
||||||
|
Loading…
Reference in New Issue
Block a user