summaryrefslogtreecommitdiff
path: root/lib/libmenu/m_hook.c
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2023-12-01 14:08:05 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2023-12-01 14:08:05 +0000
commit5374a9651d504610f17fbda2f1d992c554283bec (patch)
tree548beb4b8aafef35b49cb201a404009a90082e20 /lib/libmenu/m_hook.c
parentc75a82fe35c938df6c61309e0344a7538aa7e896 (diff)
Make internet PCB connect more consistent.
The public interface is in_pcbconnect(). It dispatches to in6_pcbconnect() if necessary. Call the former from tcp_connect() and udp_connect(). In in6_pcbconnect() initialization in6a = NULL is not necessary. in6_pcbselsrc() sets the pointer, but does not read the value. Pass a constant in6_addr pointer to in6_pcbselsrc() and in6_selectsrc(). It returns a reference to the address of some internal data structure. We want to be sure that in6_addr is not modified this way. IPv4 in_pcbselsrc() solves this by passing a copy of the address. OK kn@ sashan@ mvs@
Diffstat (limited to 'lib/libmenu/m_hook.c')
0 files changed, 0 insertions, 0 deletions