5479e5d692
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 |
||
---|---|---|
.. | ||
ipatm | ||
sigpvc | ||
spans | ||
uni | ||
atm_aal5.c | ||
atm_cm.c | ||
atm_cm.h | ||
atm_device.c | ||
atm_if.c | ||
atm_if.h | ||
atm_ioctl.h | ||
atm_pcb.h | ||
atm_proto.c | ||
atm_sap.h | ||
atm_sigmgr.h | ||
atm_signal.c | ||
atm_socket.c | ||
atm_stack.h | ||
atm_subr.c | ||
atm_sys.h | ||
atm_usrreq.c | ||
atm_var.h | ||
atm_vc.h | ||
atm.h | ||
port.h | ||
queue.h |