Remove unused function.
It was used in FreeBSD 4.x, but now we're using cr_canseesocket().
This commit is contained in:
parent
9403832e91
commit
8da601dfb7
@ -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);
|
||||
}
|
||||
|
@ -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_ */
|
||||
|
Loading…
Reference in New Issue
Block a user