From bd1ee3efb46ae013d81b1aec51668e7595274e69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20L=C3=BCssing?= Date: Sat, 5 Mar 2016 23:53:52 +0100 Subject: bridge: multicast: Export some parameters RFCs suggest to be tunable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit RFCs suggest some parameters of IGMP and MLD to be configurable by the administrator. With this patch the following parameters are configurable: * robustness (default: 2) * query_interval (default: 12500 [125s]) * query_response_interval (default: 1000 [10s]) * last_member_interval (default: 100 [1s]) Depending on the size and nature of the network topology administrators might want to increase or decrease these parameters. netifd will take care of configuring any other parameters which are dependant on the ones above and set them according to the formulas provided in the RFCs. These parameters of the bridge are membership_interval, querier_interval, startup_query_interval, startup_query_count and last_member_count. RFCs allow setting three more parameters to be configurable: startup_query_interval, startup_query_count and last_member_count. However this patch does not export them, as they can be indirectly tuned via the given, exported four parameters, too. Signed-off-by: Linus Lüssing --- system.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'system.h') diff --git a/system.h b/system.h index 97fbc8b..d5cb4e3 100644 --- a/system.h +++ b/system.h @@ -41,16 +41,26 @@ extern const struct uci_blob_param_list tunnel_attr_list; enum bridge_opt { /* stp and forward delay always set */ - BRIDGE_OPT_AGEING_TIME = (1 << 0), - BRIDGE_OPT_HELLO_TIME = (1 << 1), - BRIDGE_OPT_MAX_AGE = (1 << 2), + BRIDGE_OPT_AGEING_TIME = (1 << 0), + BRIDGE_OPT_HELLO_TIME = (1 << 1), + BRIDGE_OPT_MAX_AGE = (1 << 2), + BRIDGE_OPT_ROBUSTNESS = (1 << 3), + BRIDGE_OPT_QUERY_INTERVAL = (1 << 4), + BRIDGE_OPT_QUERY_RESPONSE_INTERVAL = (1 << 5), + BRIDGE_OPT_LAST_MEMBER_INTERVAL = (1 << 6), }; struct bridge_config { enum bridge_opt flags; bool stp; + bool igmp_snoop; bool multicast_querier; + int robustness; + int query_interval; + int query_response_interval; + int last_member_interval; + unsigned short priority; int forward_delay; bool bridge_empty; -- cgit v1.2.1