diff options
| author | Andre Oppermann <andre@FreeBSD.org> | 2004-08-27 18:33:08 +0000 |
|---|---|---|
| committer | Andre Oppermann <andre@FreeBSD.org> | 2004-08-27 18:33:08 +0000 |
| commit | 3161f583cab80c7b985abc00c709427f05f0acba (patch) | |
| tree | 5e40bb2ff1fccfd1425f4b8ada947f22f8df6605 /sys/netipsec | |
| parent | 3713458b993a312e8739a204a2a7eaa1d711b9f8 (diff) | |
Notes
Diffstat (limited to 'sys/netipsec')
| -rw-r--r-- | sys/netipsec/ipsec_input.c | 4 | ||||
| -rw-r--r-- | sys/netipsec/xform_ipip.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/netipsec/ipsec_input.c b/sys/netipsec/ipsec_input.c index 9eefa4ddbc27..7258446686db 100644 --- a/sys/netipsec/ipsec_input.c +++ b/sys/netipsec/ipsec_input.c @@ -447,13 +447,13 @@ ipsec4_common_input_cb(struct mbuf *m, struct secasvar *sav, /* * Re-dispatch via software interrupt. */ - if (!netisr_queue(NETISR_IP, m)) { + if ((error = netisr_queue(NETISR_IP, m))) { IPSEC_ISTAT(sproto, espstat.esps_qfull, ahstat.ahs_qfull, ipcompstat.ipcomps_qfull); DPRINTF(("%s: queue full; proto %u packet dropped\n", __func__, sproto)); - return ENOBUFS; + return error; } return 0; bad: diff --git a/sys/netipsec/xform_ipip.c b/sys/netipsec/xform_ipip.c index 4ede1d284dd5..b71d56b1c96b 100644 --- a/sys/netipsec/xform_ipip.c +++ b/sys/netipsec/xform_ipip.c @@ -376,7 +376,7 @@ _ipip_input(struct mbuf *m, int iphlen, struct ifnet *gifp) panic("%s: bogus ip version %u", __func__, v>>4); } - if (!netisr_queue(isr, m)) { + if (netisr_queue(isr, m)) { /* (0) on success. */ ipipstat.ipips_qfull++; DPRINTF(("%s: packet dropped because of full queue\n", __func__)); |
