Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/in6_src.c
Context not available. | |||||
* share this function by all *bsd*... | * share this function by all *bsd*... | ||||
*/ | */ | ||||
int | int | ||||
in6_pcbsetport(struct in6_addr *laddr, struct inpcb *inp, struct ucred *cred) | in6_pcbsetport(struct sockaddr *nam6, struct in6_addr *laddr, struct inpcb *inp, | ||||
struct ucred *cred) | |||||
{ | { | ||||
struct socket *so = inp->inp_socket; | struct socket *so = inp->inp_socket; | ||||
u_int16_t lport = 0; | u_int16_t lport = 0; | ||||
Context not available. | |||||
inp->inp_flags |= INP_ANONPORT; | inp->inp_flags |= INP_ANONPORT; | ||||
error = in_pcb_lport(inp, NULL, &lport, cred, lookupflags); | error = in_pcb_lport(inp, nam6, NULL, &lport, cred, lookupflags); | ||||
if (error != 0) | if (error != 0) | ||||
return (error); | return (error); | ||||
Context not available. |