freebsd-nq/sys/netatalk
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
..
aarp.c - Store pointer to the link-level address right in "struct ifnet" 2005-11-11 16:04:59 +00:00
aarp.h /* -> /*- for license, minor formatting changes, insert COPYRIGHT into files 2005-01-07 02:35:34 +00:00
at_control.c Convert the aa_ifaddr timeout to a callout, and run the aarprobe callout 2005-02-22 14:20:29 +00:00
at_extern.h Convert the aa_ifaddr timeout to a callout, and run the aarprobe callout 2005-02-22 14:20:29 +00:00
at_proto.c Use sparse initializers for "struct domain" and "struct protosw", 2005-11-09 13:29:16 +00:00
at_rmx.c /* -> /*- for license, minor formatting changes, insert COPYRIGHT into files 2005-01-07 02:35:34 +00:00
at_var.h Convert the aa_ifaddr timeout to a callout, and run the aarprobe callout 2005-02-22 14:20:29 +00:00
at.h /* -> /*- for license, minor formatting changes, insert COPYRIGHT into files 2005-01-07 02:35:34 +00:00
COPYRIGHT /* -> /*- for license, minor formatting changes, insert COPYRIGHT into files 2005-01-07 02:35:34 +00:00
ddp_input.c /* -> /*- for license, minor formatting changes, insert COPYRIGHT into files 2005-01-07 02:35:34 +00:00
ddp_output.c Use the correct mbuf type for MGET(). 2005-08-30 16:28:46 +00:00
ddp_pcb.c Modify netatalk to ensure, and assert, that pcb's remain attached to 2006-03-17 20:40:17 +00:00
ddp_pcb.h /* -> /*- for license, minor formatting changes, insert COPYRIGHT into files 2005-01-07 02:35:34 +00:00
ddp_usrreq.c Chance protocol switch method pru_detach() so that it returns void 2006-04-01 15:42:02 +00:00
ddp_var.h /* -> /*- for license, minor formatting changes, insert COPYRIGHT into files 2005-01-07 02:35:34 +00:00
ddp.h /* -> /*- for license, minor formatting changes, insert COPYRIGHT into files 2005-01-07 02:35:34 +00:00
endian.h /* -> /*- for license, minor formatting changes, insert COPYRIGHT into files 2005-01-07 02:35:34 +00:00
phase2.h /* -> /*- for license, minor formatting changes, insert COPYRIGHT into files 2005-01-07 02:35:34 +00:00