aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorIan Dowse <iedowse@FreeBSD.org>2002-10-21 20:10:05 +0000
committerIan Dowse <iedowse@FreeBSD.org>2002-10-21 20:10:05 +0000
commit90162a4e87f0e2dcd2f55779ce4b73d1a451fc37 (patch)
tree48a30c5300c4af974317246dce18b075e4367190 /sys/sys
parentc177d125bf108cf3b11b21296c0a6e88b966283c (diff)
downloadsrc-90162a4e87f0e2dcd2f55779ce4b73d1a451fc37.tar.gz
src-90162a4e87f0e2dcd2f55779ce4b73d1a451fc37.zip
Remove the "temporary connection" hack in udp_output(). In order
to send datagrams from an unconnected socket, we used to first block input, then connect the socket to the sendmsg/sendto destination, send the datagram, and finally disconnect the socket and unblock input. We now use in_pcbconnect_setup() to check if a connect() would have succeeded, but we never record the connection in the PCB (local anonymous port allocation is still recorded, though). The result from in_pcbconnect_setup() authorises the sending of the datagram and selects the local address and port to use, so we just construct the header and call ip_output(). Discussed on: -net Approved by: re
Notes
Notes: svn path=/head/; revision=105649
Diffstat (limited to 'sys/sys')
0 files changed, 0 insertions, 0 deletions