Browse Source

bridge forward delay = 0

Dmitry Yu Okunev 7 years ago
parent
commit
9500d62eb0
1 changed files with 3 additions and 0 deletions
  1. 3 0
      ipw

+ 3 - 0
ipw

@@ -150,6 +150,8 @@ esac
 
 IPW_CONFIG_PATH="${IPW_CONFIG_PATH:-/etc/ipw.conf}"
 
+BRIDGE_FORWARD_DELAY=0
+
 source "$IPW_CONFIG_PATH"
 
 NEWCONFIG_TMPPATH="/tmp/.~ipw"
@@ -539,6 +541,7 @@ case "$CMD" in
 
 					if ! iface_isexists "$BRNAME"; then #do this bridge exists?
 						ip link add "$BRNAME" type bridge
+						echo "$BRIDGE_FORWARD_DELAY" > /sys/devices/virtual/net/"$BRNAME"/bridge/forward_delay
 						ip link set dev "$BRNAME" up
 					fi