diff options
author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2004-02-17 14:02:37 +0000 |
---|---|---|
committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2004-02-17 14:02:37 +0000 |
commit | da0f40995d6ecef1ded88a6261c47343a3bc4a00 (patch) | |
tree | 303603fd5ead37b54a0b79fac7c02061fb5e5222 /sys/netinet/udp_usrreq.c | |
parent | ad1218e35e434df80f3f76f7d45e2038392657a1 (diff) | |
download | src-da0f40995d6ecef1ded88a6261c47343a3bc4a00.tar.gz src-da0f40995d6ecef1ded88a6261c47343a3bc4a00.zip |
IPSEC and FAST_IPSEC have the same internal API now;
so merge these (IPSEC has an extra ipsecstat)
Submitted by: "Bjoern A. Zeeb" <bzeeb+freebsd@zabbadoz.net>
Notes
Notes:
svn path=/head/; revision=125941
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r-- | sys/netinet/udp_usrreq.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 38525832c764..f0a01b2bdcba 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -453,21 +453,16 @@ udp_append(last, ip, n, off) struct sockaddr *append_sa; struct mbuf *opts = 0; -#ifdef IPSEC +#if defined(IPSEC) || defined(FAST_IPSEC) /* check AH/ESP integrity. */ if (ipsec4_in_reject(n, last)) { +#ifdef IPSEC ipsecstat.in_polvio++; - m_freem(n); - return; - } #endif /*IPSEC*/ -#ifdef FAST_IPSEC - /* check AH/ESP integrity. */ - if (ipsec4_in_reject(n, last)) { m_freem(n); return; } -#endif /*FAST_IPSEC*/ +#endif /*IPSEC || FAST_IPSEC*/ #ifdef MAC if (mac_check_inpcb_deliver(last, n) != 0) { m_freem(n); |