search for: libbridge_devif

Displaying 17 results from an estimated 17 matches for "libbridge_devif".

2007 Apr 18
1
[Bridge] Building 1.1 ?
...ck to brctl and building it. ./configure --prefix=/usr Works like a champ. No errors. make (errors - looks like one big one) for x in libbridge brctl doc; do make -C $x ; done make[1]: Entering directory `/software/bridge/bridge-utils-1.1/libbridge' gcc -Wall -g -I/usr/src/linux/include -c libbridge_devif.c In file included from libbridge_devif.c:28: libbridge_private.h:39:2: error: #error Using wrong kernel headers if_bridge.h libbridge_private.h:43:2: error: #error Using wrong kernel headers sockios.h is libbridge_devif.c: In function ?br_get_bridge_info?: libbridge_devif.c:196: error: ?SYSFS_BRI...
2002 Sep 17
1
Problems compiling patched bridge-utils
...orking fine. But when i try to recompile the bridge-utils utilities i get the message transcript below: esteban@inercia:~/devel/nexusbm/bridge-utils-0.9.5$ make make -C libbridge make[1]: Entering directory `/home/esteban/devel/bridge-shaper/bridge-utils-0.9.5/libbridge'' gcc -Wall -g -c libbridge_devif.c libbridge_devif.c: In function `br_set_bridge_ip_mode'': libbridge_devif.c:151: `BRCTL_SET_BRIDGE_IP_MODE'' undeclared (first use in this function) libbridge_devif.c:151: (Each undeclared identifier is reported only once libbridge_devif.c:151: for each function it appears in.) mak...
2007 Jul 31
1
[Bridge] brctl uses incorrect sysfs path
...state when it should use /sys/class/net/brXXX/bridge/stp_state. This doesn't cause any problems on most systems as it falls back to the ioctl when the sysfs attempt fails; however the ioctl method is apparently deprecated. I believe the following patch fixes this: diff --git a/libbridge/libbridge_devif.c b/libbridge/libbridge_devif.c index 1decc28..65ea79a 100644 --- a/libbridge/libbridge_devif.c +++ b/libbridge/libbridge_devif.c @@ -282,7 +282,7 @@ static int br_set(const char *bridge, const char *name, char path[SYSFS_PATH_MAX]; FILE *f; - snprintf(path, SYSFS_PATH_MA...
2007 Apr 18
1
[Bridge] two fields are missing in brctl output when using /sys
...s got printed in hexadecimal, and brctl code was parsing for decimal only doug:/sys/class/net/eth0/brport# cat port_id 0x8001 doug:/sys/class/net/eth0/brport# cat port_no 0x1 The following patch to bridge-utils (git and 1.2 release) lets it do the right thing: diff -ur bridge-utils-1.2/libbridge/libbridge_devif.c bridge-utils/libbridge/lib bridge_devif.c --- bridge-utils-1.2/libbridge/libbridge_devif.c 2007-04-05 16:02:58.2870 22220 -0400 +++ bridge-utils/libbridge/libbridge_devif.c 2007-04-05 14:51:19.362040447 -0 400 @@ -56,7 +56,7 @@ if (!f) fprintf(stderr, "%s:...
2009 Jun 15
0
[Bridge] [PATCH] bridge-utils: fix sysfs path for setting bridge configuration parameters
...ode is trying to access them under /sys/class/net/$bridgename/$param. This patch fixes this issue in the bridge-utils code and so allows setting of bridge configuration parameters using sysfs under newer kernel versions. Signed-off-by: Anna Fischer <anna.fischer at hp.com> --- libbridge/libbridge_devif.c | 25 +++++++++++++++++++++---- libbridge/libbridge_private.h | 1 + 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/libbridge/libbridge_devif.c b/libbridge/libbridge_devif.c index 34e3cc8..547bb86 100644 --- a/libbridge/libbridge_devif.c +++ b/libbridge/libbridge_devif.c @...
2009 Jun 15
0
[Bridge] [PATCH] bridge-utils: fix sysfs path for setting bridge configuration parameters
...ode is trying to access them under /sys/class/net/$bridgename/$param. This patch fixes this issue in the bridge-utils code and so allows setting of bridge configuration parameters using sysfs under newer kernel versions. Signed-off-by: Anna Fischer <anna.fischer at hp.com> --- libbridge/libbridge_devif.c | 25 +++++++++++++++++++++---- libbridge/libbridge_private.h | 1 + 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/libbridge/libbridge_devif.c b/libbridge/libbridge_devif.c index 34e3cc8..547bb86 100644 --- a/libbridge/libbridge_devif.c +++ b/libbridge/libbridge_devif.c @...
2009 Jun 15
0
[Bridge] [PATCH] bridge-utils: fix sysfs path for setting bridge configuration parameters
...ode is trying to access them under /sys/class/net/$bridgename/$param. This patch fixes this issue in the bridge-utils code and so allows setting of bridge configuration parameters using sysfs under newer kernel versions. Signed-off-by: Anna Fischer <anna.fischer at hp.com> --- libbridge/libbridge_devif.c | 25 +++++++++++++++++++++---- libbridge/libbridge_private.h | 1 + 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/libbridge/libbridge_devif.c b/libbridge/libbridge_devif.c index 34e3cc8..547bb86 100644 --- a/libbridge/libbridge_devif.c +++ b/libbridge/libbridge_devif.c @...
2007 Apr 18
0
[Bridge] libbridge<->sysfs interface - some bugs
...s-1.2/libbrid ge/Makefile.in 2006-12-31 10:21:01.584005800 +0200 @@ -5,7 +5,8 @@ RANLIB=@RANLIB@ CC=@CC@ -CFLAGS = -Wall -g $(KERNEL_HEADERS) +CFLAGS = -Wall @CFLAGS@ +INCLUDE=$(KERNEL_HEADERS) prefix=@prefix@ exec_prefix=@exec_prefix@ diff -ru --strip-trailing-cr bridge-utils-1.2/libbridge/libbridge_devif.c /Arrow75/CN3XXX-SDK/linux/embedded_rootfs/build/bridge-utils-1.2/libbrid ge/libbridge_devif.c --- bridge-utils-1.2/libbridge/libbridge_devif.c 2006-09-09 09:30:32.000000000 +0300 +++ /Arrow75/CN3XXX-SDK/linux/embedded_rootfs/build/bridge-utils-1.2/libbrid ge/libbridge_devif.c 2007-01-01 08:22:29....
2009 Aug 13
0
[Bridge] [PATCH] bridge-utils: Add 'hairpin' port forwarding mode
...for this. Signed-off-by: Paul Congdon <paul.congdon at hp.com> Signed-off-by: Anna Fischer <anna.fischer at hp.com> --- brctl/brctl_cmd.c | 38 ++++++++++++++++++++++++++++++++++++++ brctl/brctl_disp.c | 2 ++ libbridge/libbridge.h | 3 +++ libbridge/libbridge_devif.c | 24 ++++++++++++++++++++++++ 4 files changed, 67 insertions(+), 0 deletions(-) diff --git a/brctl/brctl_cmd.c b/brctl/brctl_cmd.c index c93dd55..d37e99c 100644 --- a/brctl/brctl_cmd.c +++ b/brctl/brctl_cmd.c @@ -395,6 +395,42 @@ static int br_cmd_showmacs(int argc, char *const* argv) retur...
2009 Aug 13
0
[Bridge] [PATCH] bridge-utils: Add 'hairpin' port forwarding mode
...for this. Signed-off-by: Paul Congdon <paul.congdon at hp.com> Signed-off-by: Anna Fischer <anna.fischer at hp.com> --- brctl/brctl_cmd.c | 38 ++++++++++++++++++++++++++++++++++++++ brctl/brctl_disp.c | 2 ++ libbridge/libbridge.h | 3 +++ libbridge/libbridge_devif.c | 24 ++++++++++++++++++++++++ 4 files changed, 67 insertions(+), 0 deletions(-) diff --git a/brctl/brctl_cmd.c b/brctl/brctl_cmd.c index c93dd55..d37e99c 100644 --- a/brctl/brctl_cmd.c +++ b/brctl/brctl_cmd.c @@ -395,6 +395,42 @@ static int br_cmd_showmacs(int argc, char *const* argv) retur...
2009 Aug 13
0
[Bridge] [PATCH] bridge-utils: Add 'hairpin' port forwarding mode
...for this. Signed-off-by: Paul Congdon <paul.congdon at hp.com> Signed-off-by: Anna Fischer <anna.fischer at hp.com> --- brctl/brctl_cmd.c | 38 ++++++++++++++++++++++++++++++++++++++ brctl/brctl_disp.c | 2 ++ libbridge/libbridge.h | 3 +++ libbridge/libbridge_devif.c | 24 ++++++++++++++++++++++++ 4 files changed, 67 insertions(+), 0 deletions(-) diff --git a/brctl/brctl_cmd.c b/brctl/brctl_cmd.c index c93dd55..d37e99c 100644 --- a/brctl/brctl_cmd.c +++ b/brctl/brctl_cmd.c @@ -395,6 +395,42 @@ static int br_cmd_showmacs(int argc, char *const* argv) retur...
2009 Jun 15
0
[Bridge] [PATCH][RFC] bridge-utils: add basic VEPA support
....pdf Signed-off-by: Paul Congdon <paul.congdon at hp.com> Signed-off-by: Anna Fischer <anna.fischer at hp.com> --- brctl/brctl_cmd.c | 108 ++++++++++++++++++++++++++++++++++++++++--- brctl/brctl_disp.c | 6 ++ libbridge/libbridge.h | 7 +++ libbridge/libbridge_devif.c | 90 ++++++++++++++++++++++++++++++++++- 4 files changed, 201 insertions(+), 10 deletions(-) diff --git a/brctl/brctl_cmd.c b/brctl/brctl_cmd.c index c93dd55..77eaf1e 100644 --- a/brctl/brctl_cmd.c +++ b/brctl/brctl_cmd.c @@ -280,17 +280,26 @@ static int br_cmd_setportprio(int argc, char *con...
2009 Jun 15
0
[Bridge] [PATCH][RFC] bridge-utils: add basic VEPA support
....pdf Signed-off-by: Paul Congdon <paul.congdon at hp.com> Signed-off-by: Anna Fischer <anna.fischer at hp.com> --- brctl/brctl_cmd.c | 108 ++++++++++++++++++++++++++++++++++++++++--- brctl/brctl_disp.c | 6 ++ libbridge/libbridge.h | 7 +++ libbridge/libbridge_devif.c | 90 ++++++++++++++++++++++++++++++++++- 4 files changed, 201 insertions(+), 10 deletions(-) diff --git a/brctl/brctl_cmd.c b/brctl/brctl_cmd.c index c93dd55..77eaf1e 100644 --- a/brctl/brctl_cmd.c +++ b/brctl/brctl_cmd.c @@ -280,17 +280,26 @@ static int br_cmd_setportprio(int argc, char *con...
2009 Jun 15
0
[Bridge] [PATCH][RFC] bridge-utils: add basic VEPA support
....pdf Signed-off-by: Paul Congdon <paul.congdon at hp.com> Signed-off-by: Anna Fischer <anna.fischer at hp.com> --- brctl/brctl_cmd.c | 108 ++++++++++++++++++++++++++++++++++++++++--- brctl/brctl_disp.c | 6 ++ libbridge/libbridge.h | 7 +++ libbridge/libbridge_devif.c | 90 ++++++++++++++++++++++++++++++++++- 4 files changed, 201 insertions(+), 10 deletions(-) diff --git a/brctl/brctl_cmd.c b/brctl/brctl_cmd.c index c93dd55..77eaf1e 100644 --- a/brctl/brctl_cmd.c +++ b/brctl/brctl_cmd.c @@ -280,17 +280,26 @@ static int br_cmd_setportprio(int argc, char *con...
2007 Apr 18
0
[Bridge] setting STP values via brctl
...ngs of brctl and saw something strange. I was setting the hello time, so I executed the following: # brctl sethello br0 30 Then I had a look at the value that was set: # cat /sys/class/net/br0/bridge/hello_time 2999 Much bigger than expected. I started looking at the source. In the libbridge/libbridge_devif.c file of brctl, we have the following routine: int br_set_bridge_hello_time(const char *br, struct timeval *tv) { return br_set(br, "hello_time", __tv_to_jiffies(tv), BRCTL_SET_BRIDGE_HELLO_TIME); } Note the tv_to_jiffies() call. Then, I looked in the ker...
2007 Apr 18
7
[Bridge] (no subject)
Dear Sir, I was trying to install bridge as we are installing scps gateway in our testbed.This requires us to install the bridge. Our Linux version is 2.4.18 ~3 and we are using redhat 7.2 Please let me know which is the bridge I should install and how to configure it. Before configuring the bridge what I should check in my configuration. Thanks for your time, Sincerely Rama ===== I hear
2007 Apr 18
5
[Bridge] RFC: [PATCH] bridge vlan integration
Hi, The attached patches enables the bridge to filter and forward packets according to their IEEE 802.1q headers. The goals behind this change include : - Enable running STP on 802.1q tagged networks. STP packets must be untagged. It isn't obvious how else to enable STP with the current bridge and vlan code. - Add native support for an untagged vlan. Currently an untagged vlan can