Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/netinet/udp_usrreq.c,v retrieving revision 1.183.6.2 retrieving revision 1.184 diff -u -p -r1.183.6.2 -r1.184 --- src/sys/netinet/udp_usrreq.c 2012/04/05 21:33:44 1.183.6.2 +++ src/sys/netinet/udp_usrreq.c 2011/12/19 11:59:57 1.184 @@ -1,4 +1,4 @@ -/* $NetBSD: udp_usrreq.c,v 1.183.6.2 2012/04/05 21:33:44 mrg Exp $ */ +/* $NetBSD: udp_usrreq.c,v 1.184 2011/12/19 11:59:57 drochner Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -61,7 +61,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.183.6.2 2012/04/05 21:33:44 mrg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.184 2011/12/19 11:59:57 drochner Exp $"); #include "opt_inet.h" #include "opt_compat_netbsd.h" @@ -129,6 +129,13 @@ __KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c #endif #endif /* FAST_IPSEC */ +#ifdef KAME_IPSEC +#include +#include +#include +#include +#endif /* KAME_IPSEC */ + #ifdef COMPAT_50 #include #endif @@ -627,7 +634,7 @@ udp4_sendup(struct mbuf *m, int off /* o return; } -#if defined(FAST_IPSEC) +#if defined(KAME_IPSEC) || defined(FAST_IPSEC) /* check AH/ESP integrity. */ if (so != NULL && ipsec4_in_reject_so(m, so)) { IPSEC_STATINC(IPSEC_STAT_IN_POLVIO); @@ -677,7 +684,7 @@ udp6_sendup(struct mbuf *m, int off /* o return; in6p = sotoin6pcb(so); -#if defined(FAST_IPSEC) +#if defined(KAME_IPSEC) || defined(FAST_IPSEC) /* check AH/ESP integrity. */ if (so != NULL && ipsec6_in_reject_so(m, so)) { IPSEC6_STATINC(IPSEC_STAT_IN_POLVIO); @@ -1604,7 +1611,7 @@ udp4_espinudp(struct mbuf **mp, int off, esp4_input(n, iphdrlen); #endif - /* We handled it, it shouldn't be handled by UDP */ + /* We handled it, it shoudln't be handled by UDP */ return 1; } #endif