]> git.pld-linux.org Git - packages/iproute2.git/blame - iproute2-print_cache_route_entries.patch
- up to 4.3.0
[packages/iproute2.git] / iproute2-print_cache_route_entries.patch
CommitLineData
47fff01d
AO
1diff -ruNp iproute2-4.2.0.orig/ip/iproute.c iproute2-4.2.0/ip/iproute.c
2--- iproute2-4.2.0.orig/ip/iproute.c 2015-09-01 01:31:15.000000000 +0200
3+++ iproute2-4.2.0/ip/iproute.c 2015-10-12 12:06:37.710674199 +0200
4@@ -331,6 +331,9 @@ int print_route(const struct sockaddr_nl
5 if (!filter_nlmsg(n, tb, host_len))
6 return 0;
7
8+ if ((r->rtm_flags & RTM_F_CLONED && !filter.cloned) || (!(r->rtm_flags & RTM_F_CLONED) && filter.cloned))
9+ return 0;
10+
11 if (filter.flushb) {
12 struct nlmsghdr *fn;
13 if (NLMSG_ALIGN(filter.flushp) + n->nlmsg_len > filter.flushe) {
This page took 0.079835 seconds and 4 git commands to generate.