From b4cbac83ffd487d37ba47b3238abe693f86cdd50 Mon Sep 17 00:00:00 2001 From: Rémy Oudompheng Date: Mon, 13 Jun 2011 13:12:00 +0200 Subject: bridge: add FWD_DELAY and MAX_AGE options (FS#16625) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bridge support is quite rudimentary and should support common options. Signed-off-by: Rémy Oudompheng --- src/connections/bridge | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/connections/bridge') 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" -- cgit v1.2.3-24-g4f1b