]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
add help command to bonding master
authorJiri Pirko <jiri@resnulli.us>
Fri, 5 Sep 2014 13:24:16 +0000 (15:24 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Sun, 28 Sep 2014 23:07:07 +0000 (16:07 -0700)
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
ip/iplink_bond.c

index b5c511ebb7a4ba7ace286b0c2c9e4324d103672c..0a1ed0338c057ca449955b8806265d6eb82a76f7 100644 (file)
@@ -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();