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)
commitaea7427f70cce5fa8f99ce447b213e9e3b49f24c
treecf247ed4683d498ed7c067da7e6ef315ad97f3ff
parentef3a62d272f033989e83eb1f26505f93f93e3e69
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