Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/udp_usrreq.c
Show First 20 Lines • Show All 1,691 Lines • ▼ Show 20 Lines | udp_connect(struct socket *so, struct sockaddr *nam, struct thread *td) | ||||
} | } | ||||
error = prison_remote_ip4(td->td_ucred, &sin->sin_addr); | error = prison_remote_ip4(td->td_ucred, &sin->sin_addr); | ||||
if (error != 0) { | if (error != 0) { | ||||
INP_WUNLOCK(inp); | INP_WUNLOCK(inp); | ||||
return (error); | return (error); | ||||
} | } | ||||
NET_EPOCH_ENTER(et); | NET_EPOCH_ENTER(et); | ||||
INP_HASH_WLOCK(pcbinfo); | INP_HASH_WLOCK(pcbinfo); | ||||
error = in_pcbconnect(inp, nam, td->td_ucred); | error = in_pcbconnect(inp, nam, td->td_ucred, true); | ||||
Lint: Possible Spelling Mistake: Possible spelling error. You wrote 'nam', but did you mean 'name'? | |||||
INP_HASH_WUNLOCK(pcbinfo); | INP_HASH_WUNLOCK(pcbinfo); | ||||
NET_EPOCH_EXIT(et); | NET_EPOCH_EXIT(et); | ||||
if (error == 0) | if (error == 0) | ||||
soisconnected(so); | soisconnected(so); | ||||
INP_WUNLOCK(inp); | INP_WUNLOCK(inp); | ||||
return (error); | return (error); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 106 Lines • Show Last 20 Lines |
Possible spelling error. You wrote 'nam', but did you mean 'name'?