Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/netinet6 Pull up revision 1.26 (via patch, requeste...



details:   https://anonhg.NetBSD.org/src/rev/b732e9b7a663
branches:  netbsd-1-5
changeset: 491209:b732e9b7a663
user:      he <he%NetBSD.org@localhost>
date:      Fri Apr 06 00:29:21 2001 +0000

description:
Pull up revision 1.26 (via patch, requested by itojun):
  Record IPsec packet history in m_aux structure.  Let ipfilter
  look at wire-format packet only (not the decapsulated ones), so
  that VPN setting can work with NAT/ipfilter settings.

diffstat:

 sys/netinet6/raw_ip6.c |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 3a9afe57a59b -r b732e9b7a663 sys/netinet6/raw_ip6.c
--- a/sys/netinet6/raw_ip6.c    Fri Apr 06 00:29:03 2001 +0000
+++ b/sys/netinet6/raw_ip6.c    Fri Apr 06 00:29:21 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: raw_ip6.c,v 1.23.2.1 2001/02/26 22:44:34 he Exp $      */
+/*     $NetBSD: raw_ip6.c,v 1.23.2.2 2001/04/06 00:29:21 he Exp $      */
 /*     $KAME: raw_ip6.c,v 1.28 2000/05/28 23:25:07 itojun Exp $        */
 
 /*
@@ -479,6 +479,13 @@
                *p = in6_cksum(m, ip6->ip6_nxt, sizeof(*ip6), plen);
        }
 
+#ifdef IPSEC
+       if (ipsec_setsocket(m, so) != 0) {
+               error = ENOBUFS;
+               goto bad;
+       }
+#endif /*IPSEC*/
+       
        error = ip6_output(m, optp, &in6p->in6p_route, 0, in6p->in6p_moptions,
                           &oifp);
        if (so->so_proto->pr_protocol == IPPROTO_ICMPV6) {



Home | Main Index | Thread Index | Old Index