summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_pcb.c
diff options
context:
space:
mode:
authorsmh <smh@FreeBSD.org>2014-05-26 22:54:15 +0000
committersmh <smh@FreeBSD.org>2014-05-26 22:54:15 +0000
commit873b20c0ff82983e12fd6594ed634830f455f3ab (patch)
treee10bdf700d603324de6d65a642970053a8a04fd2 /sys/netinet/in_pcb.c
parent5f95900ee1af25b2f5313c465d77e2420e9562b6 (diff)
downloadFreeBSD-src-873b20c0ff82983e12fd6594ed634830f455f3ab.zip
FreeBSD-src-873b20c0ff82983e12fd6594ed634830f455f3ab.tar.gz
MFC r264879
Fix jailed raw sockets not setting the correct source address by calling in_pcbladdr instead of prison_get_ip4. Sponsored by: Multiplay
Diffstat (limited to 'sys/netinet/in_pcb.c')
-rw-r--r--sys/netinet/in_pcb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
index dd2db49..4e75f13 100644
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -694,7 +694,7 @@ in_pcbconnect(struct inpcb *inp, struct sockaddr *nam, struct ucred *cred)
* Do proper source address selection on an unbound socket in case
* of connect. Take jails into account as well.
*/
-static int
+int
in_pcbladdr(struct inpcb *inp, struct in_addr *faddr, struct in_addr *laddr,
struct ucred *cred)
{
OpenPOWER on IntegriCloud