Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_usrreq.c
Show First 20 Lines • Show All 1,929 Lines • ▼ Show 20 Lines | #endif | ||||
/* Pass in the INP locked, caller must unlock it. */ | /* Pass in the INP locked, caller must unlock it. */ | ||||
return (tp->t_fb->tfb_tcp_ctloutput(inp->inp_socket, sopt, inp, tp)); | return (tp->t_fb->tfb_tcp_ctloutput(inp->inp_socket, sopt, inp, tp)); | ||||
} | } | ||||
int | int | ||||
tcp_ctloutput(struct socket *so, struct sockopt *sopt) | tcp_ctloutput(struct socket *so, struct sockopt *sopt) | ||||
{ | { | ||||
int error; | |||||
struct inpcb *inp; | struct inpcb *inp; | ||||
error = 0; | |||||
inp = sotoinpcb(so); | inp = sotoinpcb(so); | ||||
KASSERT(inp != NULL, ("tcp_ctloutput: inp == NULL")); | KASSERT(inp != NULL, ("tcp_ctloutput: inp == NULL")); | ||||
if (sopt->sopt_dir == SOPT_SET) | if (sopt->sopt_dir == SOPT_SET) | ||||
return (tcp_ctloutput_set(inp, sopt)); | return (tcp_ctloutput_set(inp, sopt)); | ||||
else if (sopt->sopt_dir == SOPT_GET) | else if (sopt->sopt_dir == SOPT_GET) | ||||
return (tcp_ctloutput_get(inp, sopt)); | return (tcp_ctloutput_get(inp, sopt)); | ||||
else | else | ||||
▲ Show 20 Lines • Show All 1,212 Lines • Show Last 20 Lines |