diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index a0aec02df851..97df1fd1ccdd 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -486,7 +486,6 @@ inp_so_options(const struct inpcb *inp) } #endif /* INET || INET6 */ -#ifdef INET /* * Check if a new BINDMULTI socket is allowed to be created. * @@ -496,7 +495,7 @@ inp_so_options(const struct inpcb *inp) * This checks whether the existing inp also has BINDMULTI and * whether the credentials match. */ -static int +int in_pcbbind_check_bindmulti(const struct inpcb *ni, const struct inpcb *oi) { /* Check permissions match */ @@ -517,6 +516,7 @@ in_pcbbind_check_bindmulti(const struct inpcb *ni, const struct inpcb *oi) return (1); } +#ifdef INET /* * Set up a bind operation on a PCB, performing port allocation * as required, but do not actually modify the PCB. Callers can diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h index 350b962f90dd..8c73f2d657ad 100644 --- a/sys/netinet/in_pcb.h +++ b/sys/netinet/in_pcb.h @@ -607,6 +607,9 @@ void in_pcbinfo_destroy(struct inpcbinfo *); void in_pcbinfo_init(struct inpcbinfo *, const char *, struct inpcbhead *, int, int, char *, uma_init, uma_fini, uint32_t, u_int); +int in_pcbbind_check_bindmulti(const struct inpcb *ni, + const struct inpcb *oi); + struct inpcbgroup * in_pcbgroup_byhash(struct inpcbinfo *, u_int, uint32_t); struct inpcbgroup *