diff options
author | smh <smh@FreeBSD.org> | 2014-05-26 22:54:15 +0000 |
---|---|---|
committer | smh <smh@FreeBSD.org> | 2014-05-26 22:54:15 +0000 |
commit | 873b20c0ff82983e12fd6594ed634830f455f3ab (patch) | |
tree | e10bdf700d603324de6d65a642970053a8a04fd2 /sys/netinet/in_pcb.h | |
parent | 5f95900ee1af25b2f5313c465d77e2420e9562b6 (diff) | |
download | FreeBSD-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.h')
-rw-r--r-- | sys/netinet/in_pcb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h index 1760bca..f17cd82 100644 --- a/sys/netinet/in_pcb.h +++ b/sys/netinet/in_pcb.h @@ -636,6 +636,8 @@ void in_pcbdrop(struct inpcb *); void in_pcbfree(struct inpcb *); int in_pcbinshash(struct inpcb *); int in_pcbinshash_nopcbgroup(struct inpcb *); +int in_pcbladdr(struct inpcb *, struct in_addr *, struct in_addr *, + struct ucred *); struct inpcb * in_pcblookup_local(struct inpcbinfo *, struct in_addr, u_short, int, struct ucred *); |