Deleted Added
full compact
ipsec_input.c (185571) ipsec_input.c (193219)
1/* $FreeBSD: head/sys/netipsec/ipsec_input.c 185571 2008-12-02 21:37:28Z bz $ */
1/* $FreeBSD: head/sys/netipsec/ipsec_input.c 193219 2009-06-01 10:41:38Z rwatson $ */
2/* $OpenBSD: ipsec_input.c,v 1.63 2003/02/20 18:35:43 deraadt Exp $ */
3/*-
4 * The authors of this code are John Ioannidis (ji@tla.org),
5 * Angelos D. Keromytis (kermit@csd.uch.gr) and
6 * Niels Provos (provos@physnet.uni-hamburg.de).
7 *
8 * This code was written by John Ioannidis for BSD/OS in Athens, Greece,
9 * in November 1995.

--- 466 unchanged lines hidden (view full) ---

476 if (prot != IPPROTO_IPIP)
477 if ((error = ipsec_filter(&m, PFIL_IN, ENC_IN|ENC_BEFORE)) != 0)
478 return (error);
479#endif
480
481 /*
482 * Re-dispatch via software interrupt.
483 */
2/* $OpenBSD: ipsec_input.c,v 1.63 2003/02/20 18:35:43 deraadt Exp $ */
3/*-
4 * The authors of this code are John Ioannidis (ji@tla.org),
5 * Angelos D. Keromytis (kermit@csd.uch.gr) and
6 * Niels Provos (provos@physnet.uni-hamburg.de).
7 *
8 * This code was written by John Ioannidis for BSD/OS in Athens, Greece,
9 * in November 1995.

--- 466 unchanged lines hidden (view full) ---

476 if (prot != IPPROTO_IPIP)
477 if ((error = ipsec_filter(&m, PFIL_IN, ENC_IN|ENC_BEFORE)) != 0)
478 return (error);
479#endif
480
481 /*
482 * Re-dispatch via software interrupt.
483 */
484 if ((error = netisr_queue(NETISR_IP, m))) {
484 if ((error = netisr_queue_src(NETISR_IP, (uintptr_t)sav, m))) {
485 IPSEC_ISTAT(sproto, V_espstat.esps_qfull, V_ahstat.ahs_qfull,
486 V_ipcompstat.ipcomps_qfull);
487
488 DPRINTF(("%s: queue full; proto %u packet dropped\n",
489 __func__, sproto));
490 return error;
491 }
492 return 0;

--- 392 unchanged lines hidden ---
485 IPSEC_ISTAT(sproto, V_espstat.esps_qfull, V_ahstat.ahs_qfull,
486 V_ipcompstat.ipcomps_qfull);
487
488 DPRINTF(("%s: queue full; proto %u packet dropped\n",
489 __func__, sproto));
490 return error;
491 }
492 return 0;

--- 392 unchanged lines hidden ---