aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/iproute2/patches/180-drop_FAILED_POLICY.patch
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2018-07-10 12:19:40 +0200
committerHans Dedecker <dedeckeh@gmail.com>2018-07-10 19:30:12 +0200
commit7e824183726649a32a998930f3f0a6ab360d5d2d (patch)
treec2fd01ebd967b15c7c7629714a073c8c523d229f /package/network/utils/iproute2/patches/180-drop_FAILED_POLICY.patch
parent6dac92a42e052f89971762173daabb7fd84742ef (diff)
downloadupstream-7e824183726649a32a998930f3f0a6ab360d5d2d.tar.gz
upstream-7e824183726649a32a998930f3f0a6ab360d5d2d.tar.bz2
upstream-7e824183726649a32a998930f3f0a6ab360d5d2d.zip
iproute2: update to 4.17.0
Update to the latest version of iproute2; see https://lwn.net/Articles/756991/ for a full overview of the changes in 4.17. Remove upstream patch 002-json_print-fix-hidden-64-bit-type-promotion. Backport upstream patch 001-rdma-sync-some-IP-headers-with-glibc fixing rdma compile issue. At the same time re-organize patch numbering so the OpenWRT specific patches start at 100. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'package/network/utils/iproute2/patches/180-drop_FAILED_POLICY.patch')
-rw-r--r--package/network/utils/iproute2/patches/180-drop_FAILED_POLICY.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/package/network/utils/iproute2/patches/180-drop_FAILED_POLICY.patch b/package/network/utils/iproute2/patches/180-drop_FAILED_POLICY.patch
new file mode 100644
index 0000000000..9c063791d1
--- /dev/null
+++ b/package/network/utils/iproute2/patches/180-drop_FAILED_POLICY.patch
@@ -0,0 +1,41 @@
+From 4e7dbf76227e8c7be7897dc81def3011f637864d Mon Sep 17 00:00:00 2001
+From: Jonas Gorski <jogo@openwrt.org>
+Date: Thu, 30 May 2013 11:54:04 +0200
+Subject: [PATCH] add support for dropping with FAILED_POLICY
+
+---
+ include/linux/fib_rules.h | 4 ++++
+ include/linux/rtnetlink.h | 1 +
+ ip/rtm_map.c | 4 ++++
+ 3 files changed, 9 insertions(+)
+
+--- a/ip/rtm_map.c
++++ b/ip/rtm_map.c
+@@ -48,6 +48,8 @@ char *rtnl_rtntype_n2a(int id, char *buf
+ return "nat";
+ case RTN_XRESOLVE:
+ return "xresolve";
++ case RTN_FAILED_POLICY:
++ return "failed_policy";
+ default:
+ snprintf(buf, len, "%d", id);
+ return buf;
+@@ -83,6 +85,8 @@ int rtnl_rtntype_a2n(int *id, char *arg)
+ res = RTN_UNICAST;
+ else if (strcmp(arg, "throw") == 0)
+ res = RTN_THROW;
++ else if (strcmp(arg, "failed_policy") == 0)
++ res = RTN_FAILED_POLICY;
+ else {
+ res = strtoul(arg, &end, 0);
+ if (!end || end == arg || *end || res > 255)
+--- a/include/uapi/linux/rtnetlink.h
++++ b/include/uapi/linux/rtnetlink.h
+@@ -221,6 +221,7 @@ enum {
+ RTN_THROW, /* Not in this table */
+ RTN_NAT, /* Translate this address */
+ RTN_XRESOLVE, /* Use external resolver */
++ RTN_FAILED_POLICY, /* Source address failed policy */
+ __RTN_MAX
+ };
+