ipv6: handle Redirect ICMP Message with no Redirected Header option
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>
Thu, 22 Aug 2013 04:07:35 +0000 (12:07 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Aug 2013 03:08:21 +0000 (20:08 -0700)
commitc92a59eca86f5d13ae4d481c3bae6b54609fe006
tree627c129f365ec275624f1ffa5a50d3c1c13105c2
parent6e1f99757a2b24b7255263b2240a0eb04215174d
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>
include/net/ip6_route.h
net/ipv6/ndisc.c
net/ipv6/route.c