diff options
author | Linus Lüssing <linus.luessing@c0d3.blue> | 2021-05-13 15:20:47 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-05-13 23:04:31 +0200 |
commit | 1a3065a26807b4cdd65d3b696ddb18385610f7da (patch) | |
tree | 44f25dfd1ac226806720df116d11b2b60b580331 /net/bridge/br_input.c | |
parent | net: bridge: mcast: prepare query reception for mcast router split (diff) | |
download | linux-1a3065a26807b4cdd65d3b696ddb18385610f7da.tar.xz linux-1a3065a26807b4cdd65d3b696ddb18385610f7da.zip |
net: bridge: mcast: prepare is-router function for mcast router split
In preparation for the upcoming split of multicast router state into
their IPv4 and IPv6 variants make br_multicast_is_router() protocol
family aware.
Note that for now br_ip6_multicast_is_router() uses the currently still
common ip4_mc_router_timer for now. It will be renamed to
ip6_mc_router_timer later when the split is performed.
While at it also renames the "1" and "2" constants in
br_multicast_is_router() to the MDB_RTR_TYPE_TEMP_QUERY and
MDB_RTR_TYPE_PERM enums.
Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_input.c')
-rw-r--r-- | net/bridge/br_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_input.c b/net/bridge/br_input.c index 8875e953ac53..1f506309efa8 100644 --- a/net/bridge/br_input.c +++ b/net/bridge/br_input.c @@ -132,7 +132,7 @@ int br_handle_frame_finish(struct net *net, struct sock *sk, struct sk_buff *skb if ((mdst || BR_INPUT_SKB_CB_MROUTERS_ONLY(skb)) && br_multicast_querier_exists(br, eth_hdr(skb), mdst)) { if ((mdst && mdst->host_joined) || - br_multicast_is_router(br)) { + br_multicast_is_router(br, skb)) { local_rcv = true; br->dev->stats.multicast++; } |