]> git.pld-linux.org Git - packages/iproute2.git/commitdiff
- ip route (IPv6): don't display cache entries unless requested
authorAdam Osuchowski <adwol@pld-linux.org>
Mon, 12 Oct 2015 10:21:12 +0000 (12:21 +0200)
committerAdam Osuchowski <adwol@pld-linux.org>
Mon, 12 Oct 2015 10:21:12 +0000 (12:21 +0200)
- rel up

iproute2-print_cache_route_entries.patch [new file with mode: 0644]
iproute2.spec

diff --git a/iproute2-print_cache_route_entries.patch b/iproute2-print_cache_route_entries.patch
new file mode 100644 (file)
index 0000000..704e5ba
--- /dev/null
@@ -0,0 +1,13 @@
+diff -ruNp iproute2-4.2.0.orig/ip/iproute.c iproute2-4.2.0/ip/iproute.c
+--- iproute2-4.2.0.orig/ip/iproute.c   2015-09-01 01:31:15.000000000 +0200
++++ iproute2-4.2.0/ip/iproute.c        2015-10-12 12:06:37.710674199 +0200
+@@ -331,6 +331,9 @@ int print_route(const struct sockaddr_nl
+       if (!filter_nlmsg(n, tb, host_len))
+               return 0;
++      if ((r->rtm_flags & RTM_F_CLONED && !filter.cloned) || (!(r->rtm_flags & RTM_F_CLONED) && filter.cloned))
++              return 0;
++
+       if (filter.flushb) {
+               struct nlmsghdr *fn;
+               if (NLMSG_ALIGN(filter.flushp) + n->nlmsg_len > filter.flushe) {
index e853b7b763e517ee60972fa0fcc87eba6ef524d2..8d1a5ebe18cf00245725223efe652014a010173c 100644 (file)
@@ -16,7 +16,7 @@ Summary(pl.UTF-8):    Narzędzie do konfigurowania sieci
 Summary(pt_BR.UTF-8):  Ferramentas para roteamento avançado e configuração de interfaces de rede
 Name:          iproute2
 Version:       4.2.0
-Release:       1
+Release:       2
 License:       GPL v2+
 Group:         Networking/Admin
 Source0:       https://www.kernel.org/pub/linux/utils/net/iproute2/%{name}-%{version}.tar.xz
@@ -28,6 +28,7 @@ Patch2:               %{name}-iptables64.patch
 Patch3:                %{name}-LDFLAGS.patch
 Patch4:                fix-bashisms.patch
 Patch5:                %{name}-build.patch
+Patch6:                %{name}-print_cache_route_entries.patch
 # extensions
 Patch10:       %{name}-2.2.4-wrr.patch
 Patch11:       esfq-%{name}.patch
@@ -125,6 +126,7 @@ Dokumentacja do iproute zawiera "howto" oraz przykłady ustawień.
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
 # extensions:
 %patch10 -p1
 %patch11 -p1
This page took 0.301145 seconds and 4 git commands to generate.