]> git.baikalelectronics.ru Git - kernel.git/commit
tun: Proper handling of IPv6 header in tun driver when TUN_NO_PI is set
authorAng Way Chuang <wcang@nav6.org>
Wed, 18 Jun 2008 04:10:33 +0000 (21:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jun 2008 04:10:33 +0000 (21:10 -0700)
commitca72b43083af065cc4c6c08a4931fc6af5a99834
treec570f7385827241c45dae25611759b0909ede9ce
parent70fd398de908c13b7cc86c66be393767e1fb3adb
tun: Proper handling of IPv6 header in tun driver when TUN_NO_PI is set

By default, tun.c running in TUN_TUN_DEV mode will set the protocol of
packet to IPv4 if TUN_NO_PI is set. My program failed to work when I
assumed that the driver will check the first nibble of packet,
determine IP version and set the appropriate protocol.

Signed-off-by: Ang Way Chuang <wcang@nav6.org>
Acked-by: Max Krasnyansky <maxk@qualcomm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c