|
|
049c96 |
From 7e957986a9ff1832aed84cc8f0b77e540f36c4af Mon Sep 17 00:00:00 2001
|
|
|
049c96 |
From: Phil Sutter <psutter@redhat.com>
|
|
|
049c96 |
Date: Wed, 24 Feb 2016 10:49:04 +0100
|
|
|
049c96 |
Subject: [PATCH] iplink_bridge: add support for ageing_time
|
|
|
049c96 |
|
|
|
049c96 |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1270759
|
|
|
049c96 |
Upstream Status: iproute2.git commit 6c99fb60765b7
|
|
|
049c96 |
|
|
|
049c96 |
commit 6c99fb60765b7a18c760f2357f6ca4da54505d9d
|
|
|
049c96 |
Author: Nikolay Aleksandrov <razor@blackwall.org>
|
|
|
049c96 |
Date: Tue Jun 16 13:38:47 2015 +0300
|
|
|
049c96 |
|
|
|
049c96 |
iplink_bridge: add support for ageing_time
|
|
|
049c96 |
|
|
|
049c96 |
This patch adds support to set ageing_time via IFLA_BR_AGEING_TIME.
|
|
|
049c96 |
|
|
|
049c96 |
Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org>
|
|
|
049c96 |
---
|
|
|
049c96 |
ip/iplink_bridge.c | 8 ++++++++
|
|
|
049c96 |
1 file changed, 8 insertions(+)
|
|
|
049c96 |
|
|
|
049c96 |
diff --git a/ip/iplink_bridge.c b/ip/iplink_bridge.c
|
|
|
049c96 |
index 0cea7d1..2726a36 100644
|
|
|
049c96 |
--- a/ip/iplink_bridge.c
|
|
|
049c96 |
+++ b/ip/iplink_bridge.c
|
|
|
049c96 |
@@ -23,6 +23,7 @@ static void explain(void)
|
|
|
049c96 |
"Usage: ... bridge [ forward_delay FORWARD_DELAY ]\n"
|
|
|
049c96 |
" [ hello_time HELLO_TIME ]\n"
|
|
|
049c96 |
" [ max_age MAX_AGE ]\n"
|
|
|
049c96 |
+ " [ ageing_time AGEING_TIME ]\n"
|
|
|
049c96 |
);
|
|
|
049c96 |
}
|
|
|
049c96 |
|
|
|
049c96 |
@@ -53,6 +54,13 @@ static int bridge_parse_opt(struct link_util *lu, int argc, char **argv,
|
|
|
049c96 |
return -1;
|
|
|
049c96 |
}
|
|
|
049c96 |
addattr32(n, 1024, IFLA_BR_MAX_AGE, val);
|
|
|
049c96 |
+ } else if (matches(*argv, "ageing_time") == 0) {
|
|
|
049c96 |
+ NEXT_ARG();
|
|
|
049c96 |
+ if (get_u32(&val, *argv, 0)) {
|
|
|
049c96 |
+ invarg("invalid ageing_time", *argv);
|
|
|
049c96 |
+ return -1;
|
|
|
049c96 |
+ }
|
|
|
049c96 |
+ addattr32(n, 1024, IFLA_BR_AGEING_TIME, val);
|
|
|
049c96 |
} else if (matches(*argv, "help") == 0) {
|
|
|
049c96 |
explain();
|
|
|
049c96 |
return -1;
|
|
|
049c96 |
--
|
|
|
049c96 |
1.8.3.1
|
|
|
049c96 |
|