Remove unused function.

It was used in FreeBSD 4.x, but now we're using cr_canseesocket().
This commit is contained in:
Pawel Jakub Dawidek 2004-03-25 15:12:12 +00:00
parent 9403832e91
commit 8da601dfb7
2 changed files with 0 additions and 11 deletions

View File

@ -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);
}

View File

@ -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_ */