Blame SOURCES/0062-add-help-command-to-bonding-master.patch
|
|
049c96 |
From 93cd31f4ccc36ef387667fb0dbf6d78b493fa5b9 Mon Sep 17 00:00:00 2001
|
|
|
049c96 |
From: Phil Sutter <psutter@redhat.com>
|
|
|
049c96 |
Date: Tue, 23 Feb 2016 18:26:25 +0100
|
|
|
049c96 |
Subject: [PATCH] add help command to bonding master
|
|
|
049c96 |
|
|
|
049c96 |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1269528
|
|
|
049c96 |
Upstream Status: iproute2.git commit 7feb76ce98edf
|
|
|
049c96 |
|
|
|
049c96 |
commit 7feb76ce98edfeeffc51e3ec4deab0910df1edf4
|
|
|
049c96 |
Author: Jiri Pirko <jiri@resnulli.us>
|
|
|
049c96 |
Date: Fri Sep 5 15:24:16 2014 +0200
|
|
|
049c96 |
|
|
|
049c96 |
add help command to bonding master
|
|
|
049c96 |
|
|
|
049c96 |
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
|
|
|
049c96 |
---
|
|
|
049c96 |
ip/iplink_bond.c | 3 +++
|
|
|
049c96 |
1 file changed, 3 insertions(+)
|
|
|
049c96 |
|
|
|
049c96 |
diff --git a/ip/iplink_bond.c b/ip/iplink_bond.c
|
|
|
049c96 |
index 7a950df..539a2e6 100644
|
|
|
049c96 |
--- a/ip/iplink_bond.c
|
|
|
049c96 |
+++ b/ip/iplink_bond.c
|
|
|
049c96 |
@@ -339,6 +339,9 @@ static int bond_parse_opt(struct link_util *lu, int argc, char **argv,
|
|
|
049c96 |
}
|
|
|
049c96 |
ad_select = get_index(ad_select_tbl, *argv);
|
|
|
049c96 |
addattr8(n, 1024, IFLA_BOND_AD_SELECT, ad_select);
|
|
|
049c96 |
+ } else if (matches(*argv, "help") == 0) {
|
|
|
049c96 |
+ explain();
|
|
|
049c96 |
+ return -1;
|
|
|
049c96 |
} else {
|
|
|
049c96 |
fprintf(stderr, "bond: unknown command \"%s\"?\n", *argv);
|
|
|
049c96 |
explain();
|
|
|
049c96 |
--
|
|
|
049c96 |
1.8.3.1
|
|
|
049c96 |
|