[IPV6]: Accept -1 for IPV6_TCLASS
authorRemi Denis-Courmont <rdenis@simphalempin.com>
Thu, 14 Sep 2006 03:08:07 +0000 (20:08 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 18 Sep 2006 06:21:08 +0000 (23:21 -0700)
commitd0ee011f7290b51974e4d058cf4455a5ef91177d
treeacbf283e13a48a242ac255b88d0db4a68d122d0c
parente012d51cbc41c5e603d7850c82acb0dad9e450dd
[IPV6]: Accept -1 for IPV6_TCLASS

This patch should add support for -1 as "default" IPv6 traffic class,
as specified in IETF RFC3542 ยง6.5. Within the kernel, it seems tclass
< 0 is already handled, but setsockopt, getsockopt and recvmsg calls
won't accept it from userland.

Signed-off-by: Remi Denis-Courmont <rdenis@simphalempin.com>
Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/datagram.c
net/ipv6/ipv6_sockglue.c