aboutsummaryrefslogtreecommitdiff
path: root/include/mpool.h
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2026-06-25 21:34:38 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2026-06-25 21:34:38 +0000
commit90ea8e89d9b751e8b5ae90ef3397883b035788e5 (patch)
tree187779793812581cb0ab71079fae65690938c8cf /include/mpool.h
parent6aaaf7ba4bba5e01008924a61261b43a8356f591 (diff)
netinet6: refactor in6_pcbconnect()
If the inpcb is already bound to a local address, there is no reason to call in6_pcbladdr(). If the inpcb is already bound to a local port, there is no reason to call in_pcb_lport_dest(). In the opposite case, if the inpcb is not bound, and we are about to choose a non-conflicting local addr:port, then there is no reason to call in6_pcblookup_internal(). This change makes in6_pcbconnect() to look much more alike the IPv4 in_pcbconnect(). I tracked this strange logic all the way down to initial KAME import and failed to find any reasoning for it. Reviewed by: pouria Differential Revision: https://reviews.freebsd.org/D57534
Diffstat (limited to 'include/mpool.h')
0 files changed, 0 insertions, 0 deletions