From 8da601dfb7ddcf8804c11b14b18dcc47279f26b1 Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Thu, 25 Mar 2004 15:12:12 +0000 Subject: [PATCH] Remove unused function. It was used in FreeBSD 4.x, but now we're using cr_canseesocket(). --- sys/netinet/in_pcb.c | 10 ---------- sys/netinet/in_pcb.h | 1 - 2 files changed, 11 deletions(-) diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index 26b91a31777b..0591dd4998b4 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 cb9b20dbe081..78ae12122acc 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_ */