netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch iproute2] add help command to bonding master
@ 2014-09-05 13:24 Jiri Pirko
  2014-09-05 13:41 ` Vadim Kochan
  2014-09-28 23:07 ` Stephen Hemminger
  0 siblings, 2 replies; 4+ messages in thread
From: Jiri Pirko @ 2014-09-05 13:24 UTC (permalink / raw)
  To: netdev; +Cc: davem, stephen, nikolay

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
---
 ip/iplink_bond.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ip/iplink_bond.c b/ip/iplink_bond.c
index b5c511e..0a1ed03 100644
--- a/ip/iplink_bond.c
+++ b/ip/iplink_bond.c
@@ -339,6 +339,9 @@ static int bond_parse_opt(struct link_util *lu, int argc, char **argv,
 			}
 			ad_select = get_index(ad_select_tbl, *argv);
 			addattr8(n, 1024, IFLA_BOND_AD_SELECT, ad_select);
+		} else if (matches(*argv, "help") == 0) {
+			explain();
+			return -1;
 		} else {
 			fprintf(stderr, "bond: unknown command \"%s\"?\n", *argv);
 			explain();
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-09-28 23:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-05 13:24 [patch iproute2] add help command to bonding master Jiri Pirko
2014-09-05 13:41 ` Vadim Kochan
2014-09-05 13:53   ` Jiri Pirko
2014-09-28 23:07 ` Stephen Hemminger

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).