diff options
author | ume <ume@FreeBSD.org> | 2004-02-17 14:02:37 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2004-02-17 14:02:37 +0000 |
commit | 92aaace6046096db0cee26a2d09ade66657e9b41 (patch) | |
tree | 303603fd5ead37b54a0b79fac7c02061fb5e5222 /sys/netinet/udp_usrreq.c | |
parent | 180ac35cac1b391fa9fb698f9b690a29311b3132 (diff) | |
download | FreeBSD-src-92aaace6046096db0cee26a2d09ade66657e9b41.zip FreeBSD-src-92aaace6046096db0cee26a2d09ade66657e9b41.tar.gz |
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>
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 3852583..f0a01b2 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); |