diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-09-15 16:00:41 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-09-15 16:00:41 +0000 |
commit | 554772a66547afa10bc7fc3040f3bf9259728c60 (patch) | |
tree | 0e13685d463ed4e6c63782bdfa6a4258ba154c99 /target/linux/generic/patches-3.10/670-ipv6-allow-rejecting-with-source-address-failed-policy.patch | |
parent | 57c6730ed623e347ed8eae420e5e2fa6e67ebecc (diff) | |
download | upstream-554772a66547afa10bc7fc3040f3bf9259728c60.tar.gz upstream-554772a66547afa10bc7fc3040f3bf9259728c60.tar.bz2 upstream-554772a66547afa10bc7fc3040f3bf9259728c60.zip |
kernel: update 3.10 to 3.10.12
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38000
Diffstat (limited to 'target/linux/generic/patches-3.10/670-ipv6-allow-rejecting-with-source-address-failed-policy.patch')
-rw-r--r-- | target/linux/generic/patches-3.10/670-ipv6-allow-rejecting-with-source-address-failed-policy.patch | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/target/linux/generic/patches-3.10/670-ipv6-allow-rejecting-with-source-address-failed-policy.patch b/target/linux/generic/patches-3.10/670-ipv6-allow-rejecting-with-source-address-failed-policy.patch index 0a93341672..556adcc935 100644 --- a/target/linux/generic/patches-3.10/670-ipv6-allow-rejecting-with-source-address-failed-policy.patch +++ b/target/linux/generic/patches-3.10/670-ipv6-allow-rejecting-with-source-address-failed-policy.patch @@ -21,16 +21,6 @@ __FR_ACT_MAX, }; ---- a/include/uapi/linux/icmpv6.h -+++ b/include/uapi/linux/icmpv6.h -@@ -115,6 +115,7 @@ struct icmp6hdr { - #define ICMPV6_NOT_NEIGHBOUR 2 - #define ICMPV6_ADDR_UNREACH 3 - #define ICMPV6_PORT_UNREACH 4 -+#define ICMPV6_FAILED_POLICY 5 - - /* - * Codes for Time Exceeded --- a/include/uapi/linux/rtnetlink.h +++ b/include/uapi/linux/rtnetlink.h @@ -203,6 +203,7 @@ enum { @@ -69,7 +59,7 @@ static void rt_fibinfo_free(struct rtable __rcu **rtp) --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c -@@ -2334,6 +2334,7 @@ static const char *const rtn_type_names[ +@@ -2331,6 +2331,7 @@ static const char *const rtn_type_names[ [RTN_THROW] = "THROW", [RTN_NAT] = "NAT", [RTN_XRESOLVE] = "XRESOLVE", @@ -153,13 +143,13 @@ +static int ip6_pkt_failed_policy(struct sk_buff *skb) +{ -+ return ip6_pkt_drop(skb, ICMPV6_FAILED_POLICY, IPSTATS_MIB_INNOROUTES); ++ return ip6_pkt_drop(skb, ICMPV6_POLICY_FAIL, IPSTATS_MIB_INNOROUTES); +} + +static int ip6_pkt_failed_policy_out(struct sk_buff *skb) +{ + skb->dev = skb_dst(skb)->dev; -+ return ip6_pkt_drop(skb, ICMPV6_FAILED_POLICY, IPSTATS_MIB_OUTNOROUTES); ++ return ip6_pkt_drop(skb, ICMPV6_POLICY_FAIL, IPSTATS_MIB_OUTNOROUTES); +} + #endif |