From 83d3a901d3178a8840092b6e4f7f829b89da4ba0 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Tue, 13 Sep 2016 14:33:38 +0200 Subject: bridge: Allow setting multicast_fast_leave_option Setting the multicast_fast_leave option of a bridge allows to control the forwarding of multicast traffic when an IGMP/MLD leave is received. In case multicast_leave_option is enabled and a leave is received the multicast membership will immediately be dropped on the bridge port while in the other case the multicast membership will time out in the bridge. This could be usefull in scenarios where explicit multicast membership host tracking is not supported in the upstream network. In this case the multicast stream is still flowing after a leave is received resulting into possible bandwidth saturation on the lan if a new stream is joined as multiple multicast streams are received. Signed-off-by: Hans Dedecker --- device.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'device.h') diff --git a/device.h b/device.h index ef8d9a8..c669beb 100644 --- a/device.h +++ b/device.h @@ -45,6 +45,7 @@ enum { DEV_ATTR_DADTRANSMITS, DEV_ATTR_MULTICAST_TO_UNICAST, DEV_ATTR_MULTICAST_ROUTER, + DEV_ATTR_MULTICAST_FAST_LEAVE, DEV_ATTR_MULTICAST, DEV_ATTR_LEARNING, DEV_ATTR_UNICAST_FLOOD, @@ -99,6 +100,7 @@ enum { DEV_OPT_LEARNING = (1 << 17), DEV_OPT_UNICAST_FLOOD = (1 << 18), DEV_OPT_NEIGHGCSTALETIME = (1 << 19), + DEV_OPT_MULTICAST_FAST_LEAVE = (1 << 20), }; /* events broadcasted to all users of a device */ @@ -161,6 +163,7 @@ struct device_settings { unsigned int dadtransmits; bool multicast_to_unicast; unsigned int multicast_router; + bool multicast_fast_leave; bool multicast; bool learning; bool unicast_flood; -- cgit v1.2.3