commit | 7feb76ce98edfeeffc51e3ec4deab0910df1edf4 | [log] [tgz] |
---|---|---|
author | Jiri Pirko <jiri@resnulli.us> | Fri Sep 05 15:24:16 2014 +0200 |
committer | Stephen Hemminger <stephen@networkplumber.org> | Sun Sep 28 16:07:07 2014 -0700 |
tree | 24fa6dcc4442d909b8d3fa47afc01c31fdaf04f0 | |
parent | 620ddedada7fddd0d1d04a3da0145535423bc237 [diff] |
add help command to bonding master Signed-off-by: Jiri Pirko <jiri@resnulli.us>
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 @@ } 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();