| 14824 | } |
| 14825 | |
| 14826 | static int |
| 14827 | rack_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 | } |
| 14842 | out: |
| 14843 | INP_WUNLOCK(inp); |
| 14844 | return (error); |
| 14845 | } |
| 14846 | |
| 14847 | static int |
| 14848 | rack_pru_options(struct tcpcb *tp, int flags) |
nothing calls this directly
no test coverage detected