]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Remove options header when setsockopt's optlen is 0
authorShan Wei <shanwei@cn.fujitsu.com>
Thu, 19 Jun 2008 23:29:39 +0000 (16:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Jun 2008 23:29:39 +0000 (16:29 -0700)
commitb130f0aafb1e5fcf6522abe3f85da20a90f8af49
treecf247ed4683d498ed7c067da7e6ef315ad97f3ff
parent5edf7a16477815625c237f3b6f41c5eef1543dc4
ipv6: Remove options header when setsockopt's optlen is 0

Remove the sticky Hop-by-Hop options header by calling setsockopt()
for IPV6_HOPOPTS with a zero option length, per RFC3542.

Routing header and Destination options header does the same as
Hop-by-Hop options header.

Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ipv6_sockglue.c