summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/bridge4
-rw-r--r--src/connections/bridge7
2 files changed, 11 insertions, 0 deletions
diff --git a/examples/bridge b/examples/bridge
index 98154b8..bd422fa 100644
--- a/examples/bridge
+++ b/examples/bridge
@@ -3,3 +3,7 @@ CONNECTION="bridge"
DESCRIPTION="Example Bridge connection"
BRIDGE_INTERFACES="eth0 eth1 tap0"
IP="dhcp"
+## sets forward delay time
+#FWD_DELAY=0
+## sets max age of hello message
+#MAX_AGE=10
diff --git a/src/connections/bridge b/src/connections/bridge
index 0e44f40..3cf60c1 100644
--- a/src/connections/bridge
+++ b/src/connections/bridge
@@ -20,6 +20,13 @@ bridge_up() {
ip addr flush dev $bridge_client
$BRCTL addif $INTERFACE $bridge_client
done
+ # Set options
+ if [ -n "$FWD_DELAY" ]; then
+ $BRCTL setfd $INTERFACE "$FWD_DELAY"
+ fi
+ if [ -n "$MAX_AGE" ]; then
+ $BRCTL setmaxage $INTERFACE "$MAX_AGE"
+ fi
bring_interface up "$INTERFACE"
"$CONN_DIR/ethernet" up "$1"