| version 1.185, 2012/01/09 22:26:44 |
version 1.186, 2012/03/22 20:34:39 |
| Line 129 __KERNEL_RCSID(0, "$NetBSD$"); |
|
| Line 129 __KERNEL_RCSID(0, "$NetBSD$"); |
|
| #endif |
#endif |
| #endif /* FAST_IPSEC */ |
#endif /* FAST_IPSEC */ |
| |
|
| #ifdef KAME_IPSEC |
|
| #include <netinet6/ipsec.h> |
|
| #include <netinet6/ipsec_private.h> |
|
| #include <netinet6/esp.h> |
|
| #include <netkey/key.h> |
|
| #endif /* KAME_IPSEC */ |
|
| |
|
| #ifdef COMPAT_50 |
#ifdef COMPAT_50 |
| #include <compat/sys/socket.h> |
#include <compat/sys/socket.h> |
| #endif |
#endif |
| Line 634 udp4_sendup(struct mbuf *m, int off /* o |
|
| Line 627 udp4_sendup(struct mbuf *m, int off /* o |
|
| return; |
return; |
| } |
} |
| |
|
| #if defined(KAME_IPSEC) || defined(FAST_IPSEC) |
#if defined(FAST_IPSEC) |
| /* check AH/ESP integrity. */ |
/* check AH/ESP integrity. */ |
| if (so != NULL && ipsec4_in_reject_so(m, so)) { |
if (so != NULL && ipsec4_in_reject_so(m, so)) { |
| IPSEC_STATINC(IPSEC_STAT_IN_POLVIO); |
IPSEC_STATINC(IPSEC_STAT_IN_POLVIO); |
| Line 684 udp6_sendup(struct mbuf *m, int off /* o |
|
| Line 677 udp6_sendup(struct mbuf *m, int off /* o |
|
| return; |
return; |
| in6p = sotoin6pcb(so); |
in6p = sotoin6pcb(so); |
| |
|
| #if defined(KAME_IPSEC) || defined(FAST_IPSEC) |
#if defined(FAST_IPSEC) |
| /* check AH/ESP integrity. */ |
/* check AH/ESP integrity. */ |
| if (so != NULL && ipsec6_in_reject_so(m, so)) { |
if (so != NULL && ipsec6_in_reject_so(m, so)) { |
| IPSEC6_STATINC(IPSEC_STAT_IN_POLVIO); |
IPSEC6_STATINC(IPSEC_STAT_IN_POLVIO); |