From: Nikolay Aleksandrov <razor@blackwall.org>
To: netdev@vger.kernel.org
Cc: stephen@networkplumber.org, joerg@higgsboson.tk,
davem@davemloft.net, Nikolay Aleksandrov <razor@blackwall.org>
Subject: [PATCH iproute2 net-next 1/3] iplink_bridge: add support for ageing_time
Date: Tue, 16 Jun 2015 13:38:47 +0300 [thread overview]
Message-ID: <1434451129-3241-2-git-send-email-razor@blackwall.org> (raw)
In-Reply-To: <1434451129-3241-1-git-send-email-razor@blackwall.org>
This patch adds support to set ageing_time via IFLA_BR_AGEING_TIME.
Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org>
---
ip/iplink_bridge.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/ip/iplink_bridge.c b/ip/iplink_bridge.c
index 0cea7d1f5fa2..2726a369803e 100644
--- a/ip/iplink_bridge.c
+++ b/ip/iplink_bridge.c
@@ -23,6 +23,7 @@ static void explain(void)
"Usage: ... bridge [ forward_delay FORWARD_DELAY ]\n"
" [ hello_time HELLO_TIME ]\n"
" [ max_age MAX_AGE ]\n"
+ " [ ageing_time AGEING_TIME ]\n"
);
}
@@ -53,6 +54,13 @@ static int bridge_parse_opt(struct link_util *lu, int argc, char **argv,
return -1;
}
addattr32(n, 1024, IFLA_BR_MAX_AGE, val);
+ } else if (matches(*argv, "ageing_time") == 0) {
+ NEXT_ARG();
+ if (get_u32(&val, *argv, 0)) {
+ invarg("invalid ageing_time", *argv);
+ return -1;
+ }
+ addattr32(n, 1024, IFLA_BR_AGEING_TIME, val);
} else if (matches(*argv, "help") == 0) {
explain();
return -1;
--
2.4.3
next prev parent reply other threads:[~2015-06-16 10:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-16 10:38 [PATCH iproute2 net-next 0/3] iplink_bridge: add support for ageing_time, priority and stp_state Nikolay Aleksandrov
2015-06-16 10:38 ` Nikolay Aleksandrov [this message]
2015-06-16 10:38 ` [PATCH iproute2 net-next 2/3] iplink_bridge: add support for stp_state Nikolay Aleksandrov
2015-06-16 10:38 ` [PATCH iproute2 net-next 3/3] iplink_bridge: add support for priority Nikolay Aleksandrov
2015-06-26 4:07 ` [PATCH iproute2 net-next 0/3] iplink_bridge: add support for ageing_time, priority and stp_state Stephen Hemminger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1434451129-3241-2-git-send-email-razor@blackwall.org \
--to=razor@blackwall.org \
--cc=davem@davemloft.net \
--cc=joerg@higgsboson.tk \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).