| version 1.104, 2003/08/07 16:33:20 |
version 1.105, 2003/08/15 03:42:05 |
| Line 115 __KERNEL_RCSID(0, "$NetBSD$"); |
|
| Line 115 __KERNEL_RCSID(0, "$NetBSD$"); |
|
| |
|
| #include <machine/stdarg.h> |
#include <machine/stdarg.h> |
| |
|
| |
#ifdef FAST_IPSEC |
| |
#include <netipsec/ipsec.h> |
| |
#ifdef INET6 |
| |
#include <netipsec/ipsec6.h> |
| |
#endif |
| |
#endif /* FAST_IPSEC*/ |
| |
|
| #ifdef IPSEC |
#ifdef IPSEC |
| #include <netinet6/ipsec.h> |
#include <netinet6/ipsec.h> |
| #include <netkey/key.h> |
#include <netkey/key.h> |
| Line 486 udp4_sendup(m, off, src, so) |
|
| Line 493 udp4_sendup(m, off, src, so) |
|
| return; |
return; |
| } |
} |
| |
|
| #ifdef IPSEC |
#if defined(IPSEC) || 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)) { |
| ipsecstat.in_polvio++; |
ipsecstat.in_polvio++; |
| Line 532 udp6_sendup(m, off, src, so) |
|
| Line 539 udp6_sendup(m, off, src, so) |
|
| return; |
return; |
| in6p = sotoin6pcb(so); |
in6p = sotoin6pcb(so); |
| |
|
| #ifdef IPSEC |
#if defined(IPSEC) || 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)) { |
| ipsec6stat.in_polvio++; |
ipsec6stat.in_polvio++; |
| Line 903 udp_output(m, va_alist) |
|
| Line 910 udp_output(m, va_alist) |
|
| |
|
| return (ip_output(m, inp->inp_options, &inp->inp_route, |
return (ip_output(m, inp->inp_options, &inp->inp_route, |
| inp->inp_socket->so_options & (SO_DONTROUTE | SO_BROADCAST), |
inp->inp_socket->so_options & (SO_DONTROUTE | SO_BROADCAST), |
| inp->inp_moptions)); |
inp->inp_moptions, inp)); |
| |
|
| release: |
release: |
| m_freem(m); |
m_freem(m); |