OpenBSD/src UkyQhErsys/kern kern_sysctl.c, sys/netinet in_pcb.c in_pcb.h

   As a step towards per inpcb or socket locks, remove the net lock
   for netstat -a.  Introduce a global mutex that protects the tables
   and hashes for the internet PCBs.  To detect detached PCB, set its
   inp_socket field to NULL.  This has to be protected by a per PCB
   mutex.  The protocol pointer has to be protected by the mutex as
   netstat uses it.
   Always take the kernel lock in in_pcbnotifyall() and in6_pcbnotify()
   before the table mutex to avoid lock ordering problems in the notify
   functions.
   OK visa@
VersionDeltaFile
1.246+50-5sys/netinet/in_pcb.c
1.347+26-11sys/kern/kern_sysctl.c
1.114+22-13sys/netinet/in_pcb.h
1.107+17-2sys/netinet6/in6_pcb.c
1.131+7-2sys/netinet6/raw_ip6.c
1.113+4-1sys/netinet/raw_ip.c
1.252+3-1sys/netinet/udp_usrreq.c
1.173+3-1sys/netinet/tcp_subr.c
1.57+3-1sys/netinet6/ip6_divert.c
1.58+3-1sys/netinet/ip_divert.c
+138-3810 files

UnifiedSplitRaw