CVSROOT: /cvs Module name: src Changes by: m...@cvs.openbsd.org 2018/06/06 00:47:01
Modified files: sys/kern : uipc_socket.c sys/net : pfkeyv2.c rtsock.c Log message: Asseert that a pfkey or routing socket is referenced by a `fp' instead of calling sofree(), when its PCB is detached. This is different from TCP which does not always detach `inpcb's from sockets. In the pfkey & routing case caling sofree() there is a noop whereas for TCP it's needed to free closed connections. Having fewer sofree() makes it easier to understand the code and move the locks down. ok visa@