Refactor internet PCB lookup function. Rename in_pcbhashlookup()
authorbluhm <bluhm@openbsd.org>
Tue, 30 Aug 2022 11:53:03 +0000 (11:53 +0000)
committerbluhm <bluhm@openbsd.org>
Tue, 30 Aug 2022 11:53:03 +0000 (11:53 +0000)
commita6b8fd29c9fca9cf5e0c486549ff4cfaed27a25e
treed1c5195a4ffe9a07b7cb21d497d564f0c97c0933
parentdc317311dcb790bd86fb79d29e065b64af15f057
Refactor internet PCB lookup function.  Rename in_pcbhashlookup()
so the public API is in_pcblookup() and in_pcblookup_listen().  For
internal use introduce in_pcbhash_insert() and in_pcbhash_lookup()
to avoid code duplication.  Routing domain is unsigned, change the
type to u_int.
OK mvs@
sys/net/pf.c
sys/netinet/in_pcb.c
sys/netinet/in_pcb.h
sys/netinet/tcp_input.c
sys/netinet/tcp_subr.c
sys/netinet/tcp_usrreq.c
sys/netinet/udp_usrreq.c
sys/netinet6/in6_pcb.c
sys/netinet6/raw_ip6.c