freebsd-dev/sys/netipsec
Andre Oppermann 3161f583ca Apply error and success logic consistently to the function netisr_queue() and
its users.

netisr_queue() now returns (0) on success and ERRNO on failure.  At the
moment ENXIO (netisr queue not functional) and ENOBUFS (netisr queue full)
are supported.

Previously it would return (1) on success but the return value of IF_HANDOFF()
was interpreted wrongly and (0) was actually returned on success.  Due to this
schednetisr() was never called to kick the scheduling of the isr.  However this
was masked by other normal packets coming through netisr_dispatch() causing the
dequeueing of waiting packets.

PR:		kern/70988
Found by:	MOROHOSHI Akihiko <moro@remus.dti.ne.jp>
MFC after:	3 days
2004-08-27 18:33:08 +00:00
..
ah_var.h
ah.h
esp_var.h
esp.h
ipcomp_var.h
ipcomp.h
ipip_var.h
ipsec6.h
ipsec_input.c Apply error and success logic consistently to the function netisr_queue() and 2004-08-27 18:33:08 +00:00
ipsec_mbuf.c Push m_apply() and m_getptr() up into the colleciton of standard mbuf 2003-12-15 21:49:41 +00:00
ipsec_osdep.h os dependency glue file for improving portability 2003-09-29 22:47:45 +00:00
ipsec_output.c Fix ipip_output() to always set *mp to NULL on failure, even if 'm' 2004-01-20 22:45:10 +00:00
ipsec.c o add missing break 2004-01-27 17:45:28 +00:00
ipsec.h Initial import of RFC 2385 (TCP-MD5) digest support. 2004-02-11 04:26:04 +00:00
key_debug.c MFp4: portability work, general cleanup, locking fixes 2003-09-29 22:57:43 +00:00
key_debug.h
key_var.h
key.c Fix a paste-o in key_cmpspidx_withmask(). 2004-06-22 17:17:44 +00:00
key.h Locking and misc cleanups; most of which I've been running for >4 months: 2003-09-01 05:35:55 +00:00
keydb.h MFp4: portability work, general cleanup, locking fixes 2003-09-29 22:57:43 +00:00
keysock.c Add required includes for post-sorwakeup() change to fix FAST_IPSEC 2004-06-23 01:58:22 +00:00
keysock.h
xform_ah.c MFp4: portability work, general cleanup, locking fixes 2003-09-29 22:57:43 +00:00
xform_esp.c change SYSINIT starting point to be consistent with other modules 2004-01-27 17:43:49 +00:00
xform_ipcomp.c change SYSINIT starting point to be consistent with other modules 2004-01-27 17:43:49 +00:00
xform_ipip.c Apply error and success logic consistently to the function netisr_queue() and 2004-08-27 18:33:08 +00:00
xform_tcp.c Fix a debugging printf snafu. 2004-04-20 14:53:35 +00:00
xform.h