Skip to content
Commit f09f7ee2 authored by Ang Way Chuang's avatar Ang Way Chuang Committed by David S. Miller
Browse files

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: default avatarAng Way Chuang <wcang@nav6.org>
Acked-by: default avatarMax Krasnyansky <maxk@qualcomm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fe833fca
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment