MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rack_ctloutput

Function rack_ctloutput

freebsd/netinet/tcp_stacks/rack.c:14826–14845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14824}
14825
14826static int
14827rack_ctloutput(struct socket *so, struct sockopt *sopt, struct inpcb *inp, struct tcpcb *tp)
14828{
14829 int32_t error = EINVAL;
14830 struct tcp_rack *rack;
14831
14832 rack = (struct tcp_rack *)tp->t_fb_ptr;
14833 if (rack == NULL) {
14834 /* Huh? */
14835 goto out;
14836 }
14837 if (sopt->sopt_dir == SOPT_SET) {
14838 return (rack_set_sockopt(so, sopt, inp, tp, rack));
14839 } else if (sopt->sopt_dir == SOPT_GET) {
14840 return (rack_get_sockopt(so, sopt, inp, tp, rack));
14841 }
14842out:
14843 INP_WUNLOCK(inp);
14844 return (error);
14845}
14846
14847static int
14848rack_pru_options(struct tcpcb *tp, int flags)

Callers

nothing calls this directly

Calls 2

rack_set_sockoptFunction · 0.85
rack_get_sockoptFunction · 0.85

Tested by

no test coverage detected