]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r266800 by vanhu:
authorae <ae@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 5 Nov 2014 09:23:29 +0000 (09:23 +0000)
committerae <ae@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 5 Nov 2014 09:23:29 +0000 (09:23 +0000)
commit27a1e8ec3dc117eb5a6c0e818ba71d2f6ba852a6
tree4c59a543f83db7eb244721ea9d542127873cf105
parent2bd2c7830942bc44c5b5a4f6d2d098fcb6c2f57c
MFC r266800 by vanhu:
  IPv4-in-IPv6 and IPv6-in-IPv4 IPsec tunnels.
  For IPv6-in-IPv4, you may need to do the following command
  on the tunnel interface if it is configured as IPv4 only:
  ifconfig <interface> inet6 -ifdisabled

  Code logic inspired from NetBSD.
  PR: kern/169438

MC r266822 by bz:
  Use IPv4 statistics in ipsec4_process_packet() rather than the IPv6
  version.  This also unbreaks the NOINET6 builds after r266800.

MFC r268083 by zec:
  The assumption in ipsec4_process_packet() that the payload may be
  only IPv4 is wrong, so check the IP version before mangling the
  payload header.

MFC r272394:
  Do not strip outer header when operating in transport mode.
  Instead requeue mbuf back to IPv4 protocol handler. If there is one extra IP-IP
  encapsulation, it will be handled with tunneling interface. And thus proper
  interface will be exposed into mbuf's rcvif. Also, tcpdump that listens on tunneling
  interface will see packets in both directions.

PR: 194761

git-svn-id: svn://svn.freebsd.org/base/stable/10@274132 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/netinet6/ip6_forward.c
sys/netinet6/ip6_ipsec.c
sys/netinet6/ip6_ipsec.h
sys/netinet6/ip6_output.c
sys/netinet6/ip6_var.h
sys/netipsec/ipsec6.h
sys/netipsec/ipsec_input.c
sys/netipsec/ipsec_output.c
sys/netipsec/xform_ipip.c