aboutsummaryrefslogtreecommitdiffstats
path: root/brctl
diff options
context:
space:
mode:
authorshemminger <shemminger>2004-04-13 22:51:05 +0000
committershemminger <shemminger>2004-04-13 22:51:05 +0000
commit9e65dd9b37f465fc8a62e0e2baa9084d79657d0b (patch)
tree995b86685d11eb52310fa7077b014c1f67a8b015 /brctl
parent99274cbbd7c2fc8ed0791119fbba2765da29c0c5 (diff)
downloadandroid_external_brctl-9e65dd9b37f465fc8a62e0e2baa9084d79657d0b.tar.gz
android_external_brctl-9e65dd9b37f465fc8a62e0e2baa9084d79657d0b.tar.bz2
android_external_brctl-9e65dd9b37f465fc8a62e0e2baa9084d79657d0b.zip
Support for 1000's of ports on bridge.
Don't read port and bridge info automatically, add a new API hook to do that. Version 0.9.8
Diffstat (limited to 'brctl')
-rw-r--r--brctl/Makefile.in2
-rw-r--r--brctl/brctl.c2
-rw-r--r--brctl/brctl_cmd.c3
3 files changed, 3 insertions, 4 deletions
diff --git a/brctl/Makefile.in b/brctl/Makefile.in
index f56bd9c..fd66905 100644
--- a/brctl/Makefile.in
+++ b/brctl/Makefile.in
@@ -4,7 +4,7 @@ KERNEL_HEADERS=-I@KERNEL_HEADERS@
CC=@CC@
CFLAGS= -Wall -g @CFLAGS@
INCLUDE=-I../libbridge $(KERNEL_HEADERS)
-LIBS= -L ../libbridge -lbridge -lsysfs
+LIBS= -L ../libbridge -lbridge
prefix=@prefix@
exec_prefix=@exec_prefix@
diff --git a/brctl/brctl.c b/brctl/brctl.c
index 1849373..267170f 100644
--- a/brctl/brctl.c
+++ b/brctl/brctl.c
@@ -23,7 +23,7 @@
#include "libbridge.h"
#include "brctl.h"
-const char *version = "0.9.7";
+const char *version = "0.9.8";
const char *help_message =
"commands:\n"
diff --git a/brctl/brctl_cmd.c b/brctl/brctl_cmd.c
index 5e630e8..99d9725 100644
--- a/brctl/brctl_cmd.c
+++ b/brctl/brctl_cmd.c
@@ -276,8 +276,7 @@ void br_cmd_stp(struct bridge *br, char *arg0, char *arg1)
err = br_set_stp_state(br, stp);
if (err)
- fprintf(stderr, "set stp status failed: %s\n",
- strerror(err));
+ fprintf(stderr, "set stp status failed: %d\n", err);
}
void br_cmd_showstp(struct bridge *br, char *arg0, char *arg1)