[packages/iproute2] - ip route (IPv6): don't display cache entries unless requested - rel up

adwol adwol at pld-linux.org
Mon Oct 12 12:22:55 CEST 2015


commit 47fff01d5afad67b51f2d9f7938f123c9dd91c95
Author: Adam Osuchowski <adwol at pld-linux.org>
Date:   Mon Oct 12 12:21:12 2015 +0200

    - ip route (IPv6): don't display cache entries unless requested
    - rel up

 iproute2-print_cache_route_entries.patch | 13 +++++++++++++
 iproute2.spec                            |  4 +++-
 2 files changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/iproute2.spec b/iproute2.spec
index e853b7b..8d1a5eb 100644
--- a/iproute2.spec
+++ b/iproute2.spec
@@ -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
diff --git a/iproute2-print_cache_route_entries.patch b/iproute2-print_cache_route_entries.patch
new file mode 100644
index 0000000..704e5ba
--- /dev/null
+++ b/iproute2-print_cache_route_entries.patch
@@ -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) {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/iproute2.git/commitdiff/47fff01d5afad67b51f2d9f7938f123c9dd91c95



More information about the pld-cvs-commit mailing list