Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/ip_output.c
Show First 20 Lines • Show All 980 Lines • ▼ Show 20 Lines | if (sopt->sopt_level == SOL_SOCKET && | ||||
INP_WLOCK(inp); | INP_WLOCK(inp); | ||||
if ((so->so_options & SO_REUSEPORT) != 0) | if ((so->so_options & SO_REUSEPORT) != 0) | ||||
inp->inp_flags2 |= INP_REUSEPORT; | inp->inp_flags2 |= INP_REUSEPORT; | ||||
else | else | ||||
inp->inp_flags2 &= ~INP_REUSEPORT; | inp->inp_flags2 &= ~INP_REUSEPORT; | ||||
INP_WUNLOCK(inp); | INP_WUNLOCK(inp); | ||||
error = 0; | error = 0; | ||||
break; | break; | ||||
case SO_REUSEPORT_LB: | |||||
INP_WLOCK(inp); | |||||
if ((so->so_options & SO_REUSEPORT_LB) != 0) | |||||
inp->inp_flags2 |= INP_REUSEPORT_LB; | |||||
else | |||||
inp->inp_flags2 &= ~INP_REUSEPORT_LB; | |||||
INP_WUNLOCK(inp); | |||||
error = 0; | |||||
break; | |||||
case SO_SETFIB: | case SO_SETFIB: | ||||
INP_WLOCK(inp); | INP_WLOCK(inp); | ||||
inp->inp_inc.inc_fibnum = so->so_fibnum; | inp->inp_inc.inc_fibnum = so->so_fibnum; | ||||
INP_WUNLOCK(inp); | INP_WUNLOCK(inp); | ||||
error = 0; | error = 0; | ||||
break; | break; | ||||
case SO_MAX_PACING_RATE: | case SO_MAX_PACING_RATE: | ||||
#ifdef RATELIMIT | #ifdef RATELIMIT | ||||
▲ Show 20 Lines • Show All 439 Lines • Show Last 20 Lines |