diff options
| author | Sean Bruno <sbruno@FreeBSD.org> | 2018-06-06 15:45:57 +0000 |
|---|---|---|
| committer | Sean Bruno <sbruno@FreeBSD.org> | 2018-06-06 15:45:57 +0000 |
| commit | 1a43cff92a20d22b5a767f5c06e9cdf461cd0a2f (patch) | |
| tree | 1a3b394a3bd1ede3f714b0842056dac4c4f74a23 /sys/netinet/ip_output.c | |
| parent | 17e2a84e9aa17c9ba272cb1c920e6083277bd49a (diff) | |
Notes
Diffstat (limited to 'sys/netinet/ip_output.c')
| -rw-r--r-- | sys/netinet/ip_output.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 653d2eaad36c..90c5251204ff 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -992,6 +992,15 @@ ip_ctloutput(struct socket *so, struct sockopt *sopt) INP_WUNLOCK(inp); error = 0; 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: INP_WLOCK(inp); inp->inp_inc.inc_fibnum = so->so_fibnum; |
