summaryrefslogtreecommitdiff
path: root/system.h
diff options
context:
space:
mode:
authorLinus Lüssing <linus.luessing@c0d3.blue>2016-03-05 23:53:52 +0100
committerFelix Fietkau <nbd@openwrt.org>2016-03-07 09:43:47 +0100
commitbd1ee3efb46ae013d81b1aec51668e7595274e69 (patch)
tree63373cfb59ae6430ad8337a396d98c73b802f55b /system.h
parent7a51f23e7034157dee8e00910513d95e935eeab6 (diff)
downloadnetifd-bd1ee3efb46ae013d81b1aec51668e7595274e69.tar.gz
bridge: multicast: Export some parameters RFCs suggest to be tunable
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 <linus.luessing@c0d3.blue>
Diffstat (limited to 'system.h')
-rw-r--r--system.h16
1 files changed, 13 insertions, 3 deletions
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;