diff options
| author | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2004-03-25 15:12:12 +0000 |
|---|---|---|
| committer | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2004-03-25 15:12:12 +0000 |
| commit | 8da601dfb7ddcf8804c11b14b18dcc47279f26b1 (patch) | |
| tree | 2e8ab15bde0200f51d370e23b4fc6820f1ebe131 /sys/netinet | |
| parent | 9403832e91afee18cbeaae65ab3433c095000fb8 (diff) | |
Notes
Diffstat (limited to 'sys/netinet')
| -rw-r--r-- | sys/netinet/in_pcb.c | 10 | ||||
| -rw-r--r-- | sys/netinet/in_pcb.h | 1 |
2 files changed, 0 insertions, 11 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index 26b91a31777b9..0591dd4998b43 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -1180,13 +1180,3 @@ in_pcbsosetlabel(so) INP_UNLOCK(inp); #endif } - -int -prison_xinpcb(struct thread *td, struct inpcb *inp) -{ - if (!jailed(td->td_ucred)) - return (0); - if (ntohl(inp->inp_laddr.s_addr) == prison_getip(td->td_ucred)) - return (0); - return (1); -} diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h index cb9b20dbe0815..78ae12122acc1 100644 --- a/sys/netinet/in_pcb.h +++ b/sys/netinet/in_pcb.h @@ -365,7 +365,6 @@ struct sockaddr * in_sockaddr(in_port_t port, struct in_addr *addr); void in_pcbsosetlabel(struct socket *so); void in_pcbremlists(struct inpcb *inp); -int prison_xinpcb(struct thread *td, struct inpcb *inp); #endif /* _KERNEL */ #endif /* !_NETINET_IN_PCB_H_ */ |
