]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Replace in_pcbladdr() with a more generic inner subroutine for
authoriedowse <iedowse@FreeBSD.org>
Mon, 21 Oct 2002 13:55:50 +0000 (13:55 +0000)
committeriedowse <iedowse@FreeBSD.org>
Mon, 21 Oct 2002 13:55:50 +0000 (13:55 +0000)
commita5bc5c7b7ede3570b7cb9530c8d8f2847945f0fa
treeafd766ec15eff4244ba3cea699f2b6825cd18fbc
parentda47f8f7ff907d670fb37bf616bfe3505a92288d
Replace in_pcbladdr() with a more generic inner subroutine for
in_pcbconnect() called in_pcbconnect_setup(). This version performs
all of the functions of in_pcbconnect() except for the final
committing of changes to the PCB. In the case of an EADDRINUSE error
it can also provide to the caller the PCB of the duplicate connection,
avoiding an extra in_pcblookup_hash() lookup in tcp_connect().

This change will allow the "temporary connect" hack in udp_output()
to be removed and is part of the preparation for adding the
IP_SENDSRCADDR control message.

Discussed on: -net
Approved by: re
sys/netinet/in_pcb.c
sys/netinet/in_pcb.h
sys/netinet/tcp_usrreq.c