freebsd-nq/sys/netkey
Robert Watson bc725eafc7 Chance protocol switch method pru_detach() so that it returns void
rather than an error.  Detaches do not "fail", they other occur or
the protocol flags SS_PROTOREF to take ownership of the socket.

soclose() no longer looks at so_pcb to see if it's NULL, relying
entirely on the protocol to decide whether it's time to free the
socket or not using SS_PROTOREF.  so_pcb is now entirely owned and
managed by the protocol code.  Likewise, no longer test so_pcb in
other socket functions, such as soreceive(), which have no business
digging into protocol internals.

Protocol detach routines no longer try to free the socket on detach,
this is performed in the socket code if the protocol permits it.

In rts_detach(), no longer test for rp != NULL in detach, and
likewise in other protocols that don't permit a NULL so_pcb, reduce
the incidence of testing for it during detach.

netinet and netinet6 are not fully updated to this change, which
will be in an upcoming commit.  In their current state they may leak
memory or panic.

MFC after:	3 months
2006-04-01 15:42:02 +00:00
..
key_debug.c Fix -Wundef from compiling the amd64 LINT. 2005-12-04 10:06:06 +00:00
key_debug.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
key_var.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
key.c SADB_UPDATE did not return an error when key length is invalid. 2005-08-22 07:05:14 +00:00
key.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
keydb.c Normalize a significant number of kernel malloc type names: 2005-10-31 15:41:29 +00:00
keydb.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
keysock.c Chance protocol switch method pru_detach() so that it returns void 2006-04-01 15:42:02 +00:00
keysock.h Fix stack corruptions on amd64. 2006-01-21 10:44:34 +00:00