diff options
Diffstat (limited to 'sys')
-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 26b91a3..0591dd4 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 cb9b20d..78ae121 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_ */ |