Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/ip6_output.c
Show First 20 Lines • Show All 1,448 Lines • ▼ Show 20 Lines | if (sopt->sopt_level == SOL_SOCKET && | ||||
INP_WLOCK(in6p); | INP_WLOCK(in6p); | ||||
if ((so->so_options & SO_REUSEPORT) != 0) | if ((so->so_options & SO_REUSEPORT) != 0) | ||||
in6p->inp_flags2 |= INP_REUSEPORT; | in6p->inp_flags2 |= INP_REUSEPORT; | ||||
else | else | ||||
in6p->inp_flags2 &= ~INP_REUSEPORT; | in6p->inp_flags2 &= ~INP_REUSEPORT; | ||||
INP_WUNLOCK(in6p); | INP_WUNLOCK(in6p); | ||||
error = 0; | error = 0; | ||||
break; | break; | ||||
case SO_REUSEPORT_LB: | |||||
INP_WLOCK(in6p); | |||||
if ((so->so_options & SO_REUSEPORT_LB) != 0) | |||||
in6p->inp_flags2 |= INP_REUSEPORT_LB; | |||||
else | |||||
in6p->inp_flags2 &= ~INP_REUSEPORT_LB; | |||||
INP_WUNLOCK(in6p); | |||||
error = 0; | |||||
break; | |||||
case SO_SETFIB: | case SO_SETFIB: | ||||
INP_WLOCK(in6p); | INP_WLOCK(in6p); | ||||
in6p->inp_inc.inc_fibnum = so->so_fibnum; | in6p->inp_inc.inc_fibnum = so->so_fibnum; | ||||
INP_WUNLOCK(in6p); | INP_WUNLOCK(in6p); | ||||
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 1,642 Lines • Show Last 20 Lines |