diff options
author | Duan Jiong <duanj.fnst@cn.fujitsu.com> | 2013-08-22 12:07:35 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-22 20:08:21 -0700 |
commit | c92a59eca86f5d13ae4d481c3bae6b54609fe006 (patch) | |
tree | 627c129f365ec275624f1ffa5a50d3c1c13105c2 /include | |
parent | 6e1f99757a2b24b7255263b2240a0eb04215174d (diff) | |
download | linux-c92a59eca86f5d13ae4d481c3bae6b54609fe006.tar.bz2 |
ipv6: handle Redirect ICMP Message with no Redirected Header option
rfc 4861 says the Redirected Header option is optional, so
the kernel should not drop the Redirect Message that has no
Redirected Header option. In this patch, the function
ip6_redirect_no_header() is introduced to deal with that
condition.
Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/ip6_route.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/ip6_route.h b/include/net/ip6_route.h index 260f83f16bcf..f667248202b6 100644 --- a/include/net/ip6_route.h +++ b/include/net/ip6_route.h @@ -135,6 +135,8 @@ extern void ip6_update_pmtu(struct sk_buff *skb, struct net *net, __be32 mtu, extern void ip6_sk_update_pmtu(struct sk_buff *skb, struct sock *sk, __be32 mtu); extern void ip6_redirect(struct sk_buff *skb, struct net *net, int oif, u32 mark); +extern void ip6_redirect_no_header(struct sk_buff *skb, struct net *net, int oif, + u32 mark); extern void ip6_sk_redirect(struct sk_buff *skb, struct sock *sk); struct netlink_callback; |