aboutsummaryrefslogtreecommitdiffstats
path: root/package/iproute2/patches/003-iproute2-get_dont_filter_cached.patch
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-12-02 20:29:22 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-12-02 20:29:22 +0000
commit4482f4b5f127fbccfc9771d68617bffd47b49a27 (patch)
treef1f61a3c527cce423a9e04334219579bd283159f /package/iproute2/patches/003-iproute2-get_dont_filter_cached.patch
parent6f7e2d4ce83faf8ff9c6694cf5537ef0402a5319 (diff)
downloadupstream-4482f4b5f127fbccfc9771d68617bffd47b49a27.tar.gz
upstream-4482f4b5f127fbccfc9771d68617bffd47b49a27.tar.bz2
upstream-4482f4b5f127fbccfc9771d68617bffd47b49a27.zip
iproute2: dont filter cached routes on iproute_get (#8339)
SVN-Revision: 24216
Diffstat (limited to 'package/iproute2/patches/003-iproute2-get_dont_filter_cached.patch')
-rw-r--r--package/iproute2/patches/003-iproute2-get_dont_filter_cached.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/iproute2/patches/003-iproute2-get_dont_filter_cached.patch b/package/iproute2/patches/003-iproute2-get_dont_filter_cached.patch
new file mode 100644
index 0000000000..35c1ac4c31
--- /dev/null
+++ b/package/iproute2/patches/003-iproute2-get_dont_filter_cached.patch
@@ -0,0 +1,10 @@
+--- a/ip/iproute.c
++++ b/ip/iproute.c
+@@ -1286,6 +1286,7 @@ int iproute_get(int argc, char **argv)
+ memset(&req, 0, sizeof(req));
+
+ iproute_reset_filter();
++ filter.cloned = 2;
+
+ req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg));
+ req.n.nlmsg_flags = NLM_F_REQUEST;