[IPV6] IP6TUNNEL: Add support to IPv4 over IPv6 tunnel.
authorYasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Wed, 14 Feb 2007 15:43:16 +0000 (00:43 +0900)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:23:40 +0000 (22:23 -0700)
commitc4d3efafcc933fd2ffd169d7dc4f980393a13796
tree01ecdc7128ae03c29acbd605589a56420bcf95ec
parent61ec2aec28ba8de09f76a558a5d6d3893b1d2e47
[IPV6] IP6TUNNEL: Add support to IPv4 over IPv6 tunnel.

Some notes
- Protocol number IPPROTO_IPIP is used for IPv4 over IPv6 packets.
- If IP6_TNL_F_USE_ORIG_TCLASS is set, TOS in IPv4 header is copied to
  Traffic Class in outer IPv6 header on xmit.
- IP6_TNL_F_USE_ORIG_FLOWLABEL is ignored on xmit of IPv4 packets, because
  IPv4 header does not have flow label.
- Kernel sends ICMP error if IPv4 packet is too big on xmit, even if
  DF flag is not set.

Signed-off-by: Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_tunnel.c