diff options
author | Eric Dumazet <edumazet@google.com> | 2023-08-16 10:15:40 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-08-16 12:09:17 +0200 |
commit | 307b4ac6dc18436076cdd314aa3e556be077bf2d (patch) | |
tree | c750fdee64bbf6c74db275a134986b0b02f718b9 /net/ipv4/af_inet.c | |
parent | inet: move inet->mc_loop to inet->inet_frags (diff) | |
download | linux-307b4ac6dc18436076cdd314aa3e556be077bf2d.tar.xz linux-307b4ac6dc18436076cdd314aa3e556be077bf2d.zip |
inet: move inet->mc_all to inet->inet_frags
IP_MULTICAST_ALL socket option can now be set/read
without locking the socket.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/af_inet.c')
-rw-r--r-- | net/ipv4/af_inet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index e847822df9b6..47c9cdd7687f 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c @@ -358,7 +358,7 @@ lookup_protocol: inet->uc_ttl = -1; inet_set_bit(MC_LOOP, sk); inet->mc_ttl = 1; - inet->mc_all = 1; + inet_set_bit(MC_ALL, sk); inet->mc_index = 0; inet->mc_list = NULL; inet->rcv_tos = 0; |