aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/busybox/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-02-07 20:15:21 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-02-07 20:15:21 +0000
commit1510870ad1450dfc9afb0f3fbaae55309e9b1408 (patch)
treef4148ed44d4ef1f88df7b683a388ee468d54b53e /package/utils/busybox/patches
parent04573657d07a0d09d170831ac3751bcbecd08387 (diff)
downloadupstream-1510870ad1450dfc9afb0f3fbaae55309e9b1408.tar.gz
upstream-1510870ad1450dfc9afb0f3fbaae55309e9b1408.tar.bz2
upstream-1510870ad1450dfc9afb0f3fbaae55309e9b1408.zip
busybox: fix route tables in ip rule show output
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48649
Diffstat (limited to 'package/utils/busybox/patches')
-rw-r--r--package/utils/busybox/patches/020-networking-libiproute-fix-displaying-route-table-for.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/package/utils/busybox/patches/020-networking-libiproute-fix-displaying-route-table-for.patch b/package/utils/busybox/patches/020-networking-libiproute-fix-displaying-route-table-for.patch
new file mode 100644
index 0000000000..1e153ea918
--- /dev/null
+++ b/package/utils/busybox/patches/020-networking-libiproute-fix-displaying-route-table-for.patch
@@ -0,0 +1,23 @@
+From: Felix Fietkau <nbd@openwrt.org>
+Date: Sun, 7 Feb 2016 21:11:21 +0100
+Subject: [PATCH] networking/libiproute: fix displaying route table for rules
+
+r->rtm_table only supports a 8 bit table id, prefer RTA_TABLE if
+present.
+
+Signed-off-by: Felix Fietkau <nbd@openwrt.org>
+---
+
+--- a/networking/libiproute/iprule.c
++++ b/networking/libiproute/iprule.c
+@@ -119,7 +119,9 @@ static int FAST_FUNC print_rule(const st
+ printf("iif %s ", (char*)RTA_DATA(tb[RTA_IIF]));
+ }
+
+- if (r->rtm_table)
++ if (tb[RTA_TABLE])
++ printf("lookup %s ", rtnl_rttable_n2a(*(uint32_t*)RTA_DATA(tb[RTA_TABLE])));
++ else if (r->rtm_table)
+ printf("lookup %s ", rtnl_rttable_n2a(r->rtm_table));
+
+ if (tb[RTA_FLOW]) {