Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/netinet Pull up revision 1.75 (requested by itojun):



details:   https://anonhg.NetBSD.org/src/rev/412afa86f275
branches:  netbsd-1-5
changeset: 491200:412afa86f275
user:      he <he%NetBSD.org@localhost>
date:      Fri Apr 06 00:26:54 2001 +0000

description:
Pull up revision 1.75 (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/netinet/udp_usrreq.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r cf9302b7d385 -r 412afa86f275 sys/netinet/udp_usrreq.c
--- a/sys/netinet/udp_usrreq.c  Fri Apr 06 00:26:34 2001 +0000
+++ b/sys/netinet/udp_usrreq.c  Fri Apr 06 00:26:54 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: udp_usrreq.c,v 1.66.4.3 2000/12/15 03:29:16 he Exp $   */
+/*     $NetBSD: udp_usrreq.c,v 1.66.4.4 2001/04/06 00:26:54 he Exp $   */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -1254,7 +1254,10 @@
        udpstat.udps_opackets++;
 
 #ifdef IPSEC
-       ipsec_setsocket(m, inp->inp_socket);
+       if (ipsec_setsocket(m, inp->inp_socket) != 0) {
+               error = ENOBUFS;
+               goto release;
+       }
 #endif /*IPSEC*/
 
        return (ip_output(m, inp->inp_options, &inp->inp_route,



Home | Main Index | Thread Index | Old Index