cvs commit: src/sys/netinet udp_usrreq.c
Gleb Smirnoff
glebius at FreeBSD.org
Mon Feb 28 10:16:24 GMT 2005
glebius 2005-02-28 10:16:24 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_5)
sys/netinet udp_usrreq.c
Log:
MFC 1.172:
In in_pcbconnect_setup() jailed sockets are treated specially: if local
address is not supplied, then jail IP is choosed and in_pcbbind() is called.
Since udp_output() does not save local addr after call to in_pcbconnect_setup(),
in_pcbbind() is called for each packet, and this is incorrect.
So, we shall treat jailed sockets specially in udp_output(), we will save
their local address.
This fixes a long standing bug with broken sendto() system call in jails.
PR: kern/26506
Reviewed by: rwatson
Revision Changes Path
1.162.2.7 +5 -0 src/sys/netinet/udp_usrreq.c
More information about the cvs-src
mailing list