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/ip_input.c,v retrieving revision 1.296 retrieving revision 1.297 diff -u -p -r1.296 -r1.297 --- src/sys/netinet/ip_input.c 2011/08/31 18:31:03 1.296 +++ src/sys/netinet/ip_input.c 2011/12/19 11:59:56 1.297 @@ -1,4 +1,4 @@ -/* $NetBSD: ip_input.c,v 1.296 2011/08/31 18:31:03 plunky Exp $ */ +/* $NetBSD: ip_input.c,v 1.297 2011/12/19 11:59:56 drochner Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -91,7 +91,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.296 2011/08/31 18:31:03 plunky Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.297 2011/12/19 11:59:56 drochner Exp $"); #include "opt_inet.h" #include "opt_compat_netbsd.h" @@ -140,7 +140,7 @@ __KERNEL_RCSID(0, "$NetBSD: ip_input.c,v #include #endif -#ifdef IPSEC +#ifdef KAME_IPSEC #include #include #include @@ -536,7 +536,7 @@ ip_input(struct mbuf *m) m_adj(m, len - m->m_pkthdr.len); } -#if defined(IPSEC) +#if defined(KAME_IPSEC) /* ipflow (IP fast forwarding) is not compatible with IPsec. */ m->m_flags &= ~M_CANFASTFWD; #else @@ -559,7 +559,7 @@ ip_input(struct mbuf *m) * let ipfilter look at packet on the wire, * not the decapsulated packet. */ -#ifdef IPSEC +#ifdef KAME_IPSEC if (!ipsec_getnhist(m)) #elif defined(FAST_IPSEC) if (!ipsec_indone(m)) @@ -743,7 +743,7 @@ ip_input(struct mbuf *m) IP_STATINC(IP_STAT_CANTFORWARD); return; } -#ifdef IPSEC +#ifdef KAME_IPSEC if (ipsec4_in_reject(m, NULL)) { IPSEC_STATINC(IPSEC_STAT_IN_POLVIO); goto bad; @@ -826,7 +826,7 @@ ours: hlen = ip->ip_hl << 2; } -#if defined(IPSEC) +#if defined(KAME_IPSEC) /* * enforce IPsec policy checking if we are seeing last header. * note that we do not visit this with protocols with pcb layer @@ -1452,7 +1452,7 @@ ip_forward(struct mbuf *m, int srcrt) if ((rt = rtcache_validate(&ipforward_rt)) != NULL) destmtu = rt->rt_ifp->if_mtu; -#if defined(IPSEC) || defined(FAST_IPSEC) +#if defined(KAME_IPSEC) || defined(FAST_IPSEC) { /* * If the packet is routed over IPsec tunnel, tell the @@ -1494,14 +1494,14 @@ ip_forward(struct mbuf *m, int srcrt) } } -#ifdef IPSEC +#ifdef KAME_IPSEC key_freesp(sp); #else KEY_FREESP(&sp); #endif } } -#endif /*defined(IPSEC) || defined(FAST_IPSEC)*/ +#endif /*defined(KAME_IPSEC) || defined(FAST_IPSEC)*/ IP_STATINC(IP_STAT_CANTFRAG); break;