Displaying 4 results from an estimated 4 matches for "br_cmd_showstp".
2007 Apr 18
0
[Bridge] [PATCH] Crash on "brctl stp br0"
...ch against version 1.0.4 is
attached.
--
Regards,
Pavel Roskin
-------------- next part --------------
--- brctl/brctl_cmd.c
+++ brctl/brctl_cmd.c
@@ -394,7 +394,7 @@ static const struct command commands[] =
"<bridge>\t\tshow a list of mac addrs"},
{ 1, "showstp", br_cmd_showstp,
"<bridge>\t\tshow bridge stp info"},
- { 1, "stp", br_cmd_stp,
+ { 2, "stp", br_cmd_stp,
"<bridge> <state>\tturn stp on/off" },
};
2009 Jun 15
0
[Bridge] [PATCH][RFC] bridge-utils: add basic VEPA support
...(!strcmp(argv[2], "off") || !strcmp(argv[2], "no")
- || !strcmp(argv[2], "0"))
- stp = 0;
- else {
+ err = br_parse_param(argv[2], &stp);
+ if (err) {
fprintf(stderr, "expect on/off for argument\n");
return 1;
}
@@ -316,6 +325,85 @@ static int br_cmd_showstp(int argc, char *const* argv)
return 0;
}
+static int br_cmd_vepa(int argc, char *const* argv)
+{
+ int vepa, err;
+
+ err = br_parse_param(argv[2], &vepa);
+ if (err) {
+ fprintf(stderr, "expect on/off for argument\n");
+ return 1;
+ }
+
+ err = br_set_vepa_mode(argv[1], vepa);...
2009 Jun 15
0
[Bridge] [PATCH][RFC] bridge-utils: add basic VEPA support
...(!strcmp(argv[2], "off") || !strcmp(argv[2], "no")
- || !strcmp(argv[2], "0"))
- stp = 0;
- else {
+ err = br_parse_param(argv[2], &stp);
+ if (err) {
fprintf(stderr, "expect on/off for argument\n");
return 1;
}
@@ -316,6 +325,85 @@ static int br_cmd_showstp(int argc, char *const* argv)
return 0;
}
+static int br_cmd_vepa(int argc, char *const* argv)
+{
+ int vepa, err;
+
+ err = br_parse_param(argv[2], &vepa);
+ if (err) {
+ fprintf(stderr, "expect on/off for argument\n");
+ return 1;
+ }
+
+ err = br_set_vepa_mode(argv[1], vepa);...
2009 Jun 15
0
[Bridge] [PATCH][RFC] bridge-utils: add basic VEPA support
...(!strcmp(argv[2], "off") || !strcmp(argv[2], "no")
- || !strcmp(argv[2], "0"))
- stp = 0;
- else {
+ err = br_parse_param(argv[2], &stp);
+ if (err) {
fprintf(stderr, "expect on/off for argument\n");
return 1;
}
@@ -316,6 +325,85 @@ static int br_cmd_showstp(int argc, char *const* argv)
return 0;
}
+static int br_cmd_vepa(int argc, char *const* argv)
+{
+ int vepa, err;
+
+ err = br_parse_param(argv[2], &vepa);
+ if (err) {
+ fprintf(stderr, "expect on/off for argument\n");
+ return 1;
+ }
+
+ err = br_set_vepa_mode(argv[1], vepa);...