bridge-utils.git
20 months agobrctl: fix signed/unsigned comparison warnings master
Stephen Hemminger [Tue, 18 Jul 2017 00:23:56 +0000 (17:23 -0700)]
brctl: fix signed/unsigned comparison warnings

If built with warning enabled, Gcc would complain about
comparison of signed with unsigned.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
20 months agolibbridge: add missing sys/time.h include in header
Aleksander Morgado [Tue, 18 Jul 2017 00:21:38 +0000 (17:21 -0700)]
libbridge: add missing sys/time.h include in header
Required to define the 'struct timeval' type:

    In file included from external/bridge-utils/brctl/brctl.c:25:
    external/bridge-utils/brctl/../libbridge/libbridge.h:44:17: error: field has incomplete type 'struct timeval'
            struct timeval max_age;
                           ^

Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
22 months agolibbridge: Include the configured CFLAGS when compiling
David Michael [Sun, 14 May 2017 02:23:34 +0000 (19:23 -0700)]
libbridge: Include the configured CFLAGS when compiling

When compiling bridge-utils, the CFLAGS set during "configure" were only
used in the brctl directory. Set for libbridge as well.

2 years agobridge-utils 1.6 release v1.6
Stephen Hemminger [Wed, 12 Oct 2016 23:30:02 +0000 (16:30 -0700)]
bridge-utils 1.6 release

2 years agoman: add obsolete notice to man page
Stephen Hemminger [Wed, 12 Oct 2016 23:27:58 +0000 (16:27 -0700)]
man: add obsolete notice to man page

The brctl command has been replaced by bridge.

2 years agobrctl: better error handling
Stephen Hemminger [Wed, 17 Aug 2016 23:11:26 +0000 (16:11 -0700)]
brctl: better error handling

When calling brctl show with incorrect device name, the error handling
was quite confusing.

Before:
$ brctl show nosuchdev
bridge name bridge id STP enabled interfaces
nosuchdev can't get info No such device

After:
$ brctl show nosuchdev
bridge nosuchdev does not exist!
$ brctl show eth0
device eth0 is not a bridge!

Reported-by: Olaf Bohlen <olaf.bohlen@ewe.de>
2 years agoFix building on musl libc
Kylie McClain [Thu, 23 Jun 2016 02:50:36 +0000 (22:50 -0400)]
Fix building on musl libc

- Silence warnings:
  errno.h is defined by POSIX, sys/errno.h is a glibcism, same with
  fcntl.h vs. sys/fcntl.h
- Use standard types rather than _GNU_SOURCE-exposed types
  u_int16_t -> uint16_t
  u_int8_t -> uint8_t

5 years agobridge-utils: Pretty print configure help
Andrey Mazo [Mon, 24 Feb 2014 10:56:46 +0000 (14:56 +0400)]
bridge-utils: Pretty print configure help

Use special AS_HELP_STRING() macro to correctly format configure --help
output.

Before the change:
"""
Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-linux-headers     Location of the linux headers to use
"""

After the change:
"""
Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-linux-headers    location of the linux headers to use
"""

Signed-off-by: Andrey Mazo <mazo@telum.ru>
5 years agobridge-utils: AC_OUTPUT should be used without arguments
Andrey Mazo [Mon, 24 Feb 2014 10:56:45 +0000 (14:56 +0400)]
bridge-utils: AC_OUTPUT should be used without arguments

This patch is a result of autoupdate-2.69 run and fixes the following
warning:
configure.ac:27: warning: AC_OUTPUT should be used without arguments.
configure.ac:27: You should run autoupdate.

Signed-off-by: Andrey Mazo <mazo@telum.ru>
5 years agobridge-utils: Remove unused variable in doc/Makefile.in
Andrey Mazo [Mon, 24 Feb 2014 10:56:44 +0000 (14:56 +0400)]
bridge-utils: Remove unused variable in doc/Makefile.in

Signed-off-by: Andrey Mazo <mazo@telum.ru>
5 years agobridge-utils: Abort compilation on error in any subdirectory
Andrey Mazo [Mon, 24 Feb 2014 10:56:43 +0000 (14:56 +0400)]
bridge-utils: Abort compilation on error in any subdirectory

Currently bridge-utils makefile ignores compilation errors in
subdirectories, stepping into consecutive subdirs and finally
returning exit status of the last subdirectory's make.
The last subdirectory is now "doc", which has nothing to do for target "all",
so global `make all` always succeeds, effectively ignoring any build
errors in "libbridge" and "brctl" subdirectories.
This behaviour is odd as it breaks anyone relying on make's exit status.
For example, see Gentoo bug #483692 [1].

Fix this by simply aborting make on the first error.
Don't inspect MAKEFLAGS for -k for simplicity.

[1] https://bugs.gentoo.org/show_bug.cgi?id=483692

Signed-off-by: Andrey Mazo <mazo@telum.ru>
5 years agoClean up autoconf debris when doing make maintainer-clean
Stephen Hemminger [Wed, 20 Mar 2013 15:27:52 +0000 (08:27 -0700)]
Clean up autoconf debris when doing make maintainer-clean

Want to do full distribution style test

5 years agoignore build files
Stephen Hemminger [Wed, 20 Mar 2013 15:23:06 +0000 (08:23 -0700)]
ignore build files

update .gitignore to ignore autoconf stuff and binary

5 years agorename configure.in to configure.ac
Yegor Yefremov [Wed, 20 Mar 2013 15:22:37 +0000 (08:22 -0700)]
rename configure.in to configure.ac

Automake 1.14 will likely drop support for the long-deprecated
'configure.in' name for the Autoconf input file.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
6 years agoupdate email address
Stephen Hemminger [Thu, 7 Mar 2013 22:36:51 +0000 (14:36 -0800)]
update email address

6 years agobridge-utils: Fix compile against linux-3.8.x
Russell Senior [Wed, 6 Mar 2013 20:49:42 +0000 (12:49 -0800)]
bridge-utils: Fix compile against linux-3.8.x

Linux 3.8 has a header, include/uapi/linux/if_bridge.h that uses a
struct in6_addr but doesn't define it.  The trivial seeming fix of
including the header that does define it causes more problems.  The
problem was discussed on mailing lists in January 2013.  The final
suggestion I found was here:

      http://www.redhat.com/archives/libvir-list/2013-January/msg01253.html

This is intended to implement that suggestion.

Signed-off-by: Russell Senior <russell@personaltelco.net>
6 years agoFix typo's on man page
Stephen Hemminger [Mon, 13 Aug 2012 15:02:42 +0000 (08:02 -0700)]
Fix typo's on man page

One missing space reported by A. Costa and always captialize
Linux.

7 years agobug with older glibc: "brctl show" shows nothing
David Johnson [Tue, 4 Oct 2011 22:03:49 +0000 (15:03 -0700)]
bug with older glibc: "brctl show" shows nothing

Older glibc has a bug in scandir() where if the last call to filter
is a failure and filter sets errno, scandir() will fail and return that
errno to the caller.

If running "brctl show" on a system where the last (sorted) directory
in /sys/class/net is not a bridge, isbridge() will leave errno set to
ENOENT and trigger this bug in glibc.

Attached patch against bridge-utils v1.5 saves/restores errno in
isbridge() to workaround this bug in older glibc.

7 years agoskip . and .. in accurately in isbridge()
Xiaochen Wang [Mon, 5 Sep 2011 14:58:07 +0000 (22:58 +0800)]
skip . and .. in accurately in isbridge()

Hi all,

 In commit f88f8 "Skip . and .. in foreach_bridge test", the code skips
 all directories starting with dot.

 But if we create a bridge staring with dot, e.g. `.br0`, then `brctl show`
 cannot show this one.
 `.br0` should not be hidden, because we cannot find it except the command
 `brctl show .br0`.

Signed-off-by: Xiaochen Wang <wangxiaochen0@gmail.com>
7 years agoCheck error returns from write to sysfs
Stephen Hemminger [Tue, 3 May 2011 16:52:43 +0000 (09:52 -0700)]
Check error returns from write to sysfs

Add helper function to check write to sysfs files.

7 years agoFix error message for incorrect command
Stephen Hemminger [Tue, 3 May 2011 16:49:57 +0000 (09:49 -0700)]
Fix error message for incorrect command

Debian bug 406907
Error message was refering to incorrect command argument.

7 years agoFix incorrect command in manual
Stephen Hemminger [Tue, 3 May 2011 16:48:40 +0000 (09:48 -0700)]
Fix incorrect command in manual

Command is "setageing" not "setageingtime"; fix man page.
Debian bug report.

7 years agoUpdate URL of git repository v1.5
Stephen Hemminger [Tue, 29 Mar 2011 00:52:54 +0000 (17:52 -0700)]
Update URL of git repository

No longer uses sourceforge.

7 years agoupdate mailing address
Stephen Hemminger [Tue, 29 Mar 2011 00:48:01 +0000 (17:48 -0700)]
update mailing address

7 years agobridge-utils 1.5
Stephen Hemminger [Tue, 29 Mar 2011 00:43:36 +0000 (17:43 -0700)]
bridge-utils 1.5

8 years agoshow selected bridge
Anton Danilov [Thu, 13 Jan 2011 22:47:43 +0000 (14:47 -0800)]
show selected bridge

9 years agobridge-utils: Add 'hairpin' port forwarding mode
Fischer, Anna [Fri, 15 Jan 2010 20:45:08 +0000 (12:45 -0800)]
bridge-utils: Add 'hairpin' port forwarding mode

This patch adds a 'hairpin' (also called 'reflective relay') mode
port configuration to the Linux Ethernet bridge utilities.
A bridge supporting hairpin forwarding mode can send frames back
out through the port the frame was received on.

Hairpin mode is required to support basic VEPA (Virtual
Ethernet Port Aggregator) capabilities.

You can find additional information on VEPA here:
http://tech.groups.yahoo.com/group/evb/
http://www.ieee802.org/1/files/public/docs2009/new-hudson-vepa_seminar-20090514d.pdf
http://www.internet2.edu/presentations/jt2009jul/20090719-congdon.pdf

(I simplified the code by handling option compatiablity
 in earlier patch -- Stephen)

Signed-off-by: Paul Congdon <paul.congdon@hp.com>
Signed-off-by: Anna Fischer <anna.fischer@hp.com>
9 years agoHandle unknown attributes more gracefully
Stephen Hemminger [Fri, 15 Jan 2010 20:40:41 +0000 (12:40 -0800)]
Handle unknown attributes more gracefully

If utility has some new attribute, that is not in older kernel,
just assume it is zero.

10 years agoSkip . and .. in foreach_bridge test
Stephen Hemminger [Mon, 2 Mar 2009 21:44:18 +0000 (13:44 -0800)]
Skip . and .. in foreach_bridge test

If bridge is name 'bridge' then the test for ./bridge would succeed
and eventually cause a SEGV. Correct fix is to just skip . directories
in scan.

10 years agoCheck for fopen() failing
Stephen Hemminger [Mon, 2 Mar 2009 21:43:41 +0000 (13:43 -0800)]
Check for fopen() failing

Don't just die with SEGV if fopen fails.

11 years agouse proper version of install in doc/Makefile
Stephen Hemminger [Tue, 29 Jan 2008 23:00:34 +0000 (15:00 -0800)]
use proper version of install in doc/Makefile

Need to do autoconf correctly, bah on Lennart.

11 years agodon't install libbridge.a
Stephen Hemminger [Tue, 29 Jan 2008 22:54:43 +0000 (14:54 -0800)]
don't install libbridge.a

Resolve some problems with make install

Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
11 years agofix use of sysfs (affects 32/64 bit compat) v1.4
Denys Vlasenko [Tue, 8 Jan 2008 16:20:35 +0000 (08:20 -0800)]
fix use of sysfs (affects 32/64 bit compat)

I built current git head of bridge-utils.

32-bit binary omn 64-bit kernel doesn't show
bridged interfaces:

bridge name     bridge id               STP enabled     interfaces
br0             8000.000000000000       no               can't get port info: Operation not supported

It turns out that it uses wrong directory name
and falls back to using ioctls. Bridge ioctls
seems to be deprecated and 32/64 compat is missing,
thus it fails.

Attached patch makes brctl use /sys/class/net/br0/brif
instead of nonexistent /sys/class/net/br0/brport:

/sys/class/net/br0
...
...

./brif:
lrwxrwxrwx    1 root     root            0 Jan  8 10:54 eth0 -> ../../../../class/net/eth0/brport

Please apply.
--

Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
11 years agoUse linux/if.h rather than net/if.h for compatiablity with v1.3
Stephen Hemminger [Mon, 26 Nov 2007 16:59:11 +0000 (08:59 -0800)]
Use linux/if.h rather than net/if.h for compatiablity with
other headers.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
11 years agoAllow bridge-utils to run when no TCP/IP is available
Alon Bar-Lev [Mon, 29 Oct 2007 12:08:37 +0000 (14:08 +0200)]
Allow bridge-utils to run when no TCP/IP is available

This simple patch create AF_LOCAL socket instead of AF_INET so if TCP/IP
is not linked into kernel it still works.

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
11 years agoUpdate gitignore
Stephen Hemminger [Mon, 29 Oct 2007 15:29:20 +0000 (08:29 -0700)]
Update gitignore

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
11 years agoI've noticed for a while that
Jeremy Jackson [Tue, 8 May 2007 18:10:34 +0000 (11:10 -0700)]
I've noticed for a while that

output is showing 0 for port_no and  port_id

It seems that somewhere in 2.6 sysfs land the following items 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

12 years agoAdd ignore for generated files.
Stephen Hemminger [Wed, 21 Mar 2007 17:36:24 +0000 (10:36 -0700)]
Add ignore for generated files.

12 years agoGet rid of bridge-utils dependency on libsysfs. The library v1.2
Stephen Hemminger [Sat, 9 Sep 2006 05:30:31 +0000 (22:30 -0700)]
Get rid of bridge-utils dependency on libsysfs. The library
was more trouble than it was worth, the code is easier if
just using directories directory.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
12 years agoChange the autoconf stuff to handle newer versions of autoconf
Stephen Hemminger [Sat, 9 Sep 2006 05:20:52 +0000 (22:20 -0700)]
Change the autoconf stuff to handle newer versions of autoconf

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
12 years agopatch for a message bug
Santiago Garcia Mantinan [Sat, 26 Aug 2006 17:41:28 +0000 (19:41 +0200)]
patch for a message bug

Hi!

Jens Seidel reported a bug to Debian about a wrong message on brctl, you can
see it at http://bugs.debian.org/383938, it is kind of the continuation of
the ENODEV bug #348617 that was already patched by Stephen on the git.

I have applied the same solution that Stephen applied for the first one,
follows the patch against git plus a minor exclamation mark modification I
did so that all ENODEV messages were exclamative (Stephen patch had missed
that mark).

Regards...
--
Manty/BestiaTester -> http://manty.net

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
12 years agoRevert "Add support for bridge port forwarding."
Stephen Hemminger [Fri, 4 Aug 2006 17:23:17 +0000 (10:23 -0700)]
Revert "Add support for bridge port forwarding."

This reverts 39af7c8f2855c3d9cb44e3069cbfeddd8979acae commit.

Better to add this functionality via ebtables rather than
into bridging code.

12 years agoAdd support for bridge port forwarding.
Stephen Hemminger [Thu, 20 Jul 2006 17:59:42 +0000 (13:59 -0400)]
Add support for bridge port forwarding.

12 years agohttp://bugs.debian.org/cgi-bin/bugreport.cgi?bug=376914
Marco Nenciarini [Tue, 11 Jul 2006 23:08:40 +0000 (16:08 -0700)]
bugs.debian.org/cgi-bin/bugreport.cgi?bug=376914

some libsysfs2 internal stucts are corrupted during execution of brctl
by unneeded and erroneous calls to sysfs_close_class_device()

Long description of my troubles

On my xen Dom0 with 5 bridges and many interfaces every brctl show
invocations fails with a strange error.

bridge name     bridge id               STP enabled     interfaces
xenbr0          8000.feffffffffff       no              vif1.0
                                                        peth0
                                                        vif0.0
xenbr1          8000.feffffffffff       no              vif3.0
                                                        vif2.0
                                                        vif1.1
                                                        peth1
                                                        vif0.1
xenbr2          8000.feffffffffff       no              vif1.2
                                                        peth2
                                                        vif0.2
xenbr3          8000.feffffffffff       no               can't get port info: No such device
xenbr4          8000.feffffffffff       no              vif2.2
                                                        peth4
                                                        vif0.4

but xenbr3 was fully up and functional, as stated by the contents of
/sys/class/net/xenbr3 directory.

Investigating with strace i've found that brctl give this error
because it is trying to read xenbr3 interfaces in
/sys/class/net/eth0/brif directory!

.....
lstat64("/sys/class/net/xenbr3/bridge/topology_change_detected", {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
stat64("/sys/class/net/xenbr3/bridge/topology_change_detected", {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
open("/sys/class/net/xenbr3/bridge/topology_change_detected", O_RDONLY) = 4
read(4, "0\n", 4096)                    = 2
close(4)                                = 0
open("/sys/class/net/eth0/brif", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT (No such file or directory)
ioctl(3, SIOCDEVPRIVATE, 0xafdec36c)    = -1 ENODEV (No such device)
write(1, "8000.feffffffffff\tno\t\t can\'t get"..., 59) = 59
lstat64("/sys/class/net/xenbr4/bridge", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
write(1, "xenbr4\t\t", 8)               = 8
.....

after some gdb and documentation reading sessions i've discovered that
all calls to sysfs_close_class_device() in libbridge code are wrong,
because their arguments are pointers returned by sysfs_get_*
functions. This is explicitly forbidden by libsysfs documentation[1]
at 6.1.b and corrupt libsysfs internal structures freeing memory that
still being used.

[1] /usr/share/doc/libsysfs-dev/libsysfs.txt.gz

.....
6.1 Calling Conventions in Libsysfs
-----------------------------------

Libsysfs uses a simple API calling convention. APIs are classified to be
one of "open", "get", "close" types. The convention is as follows:

        a. All "open" APIs have a corresponding "close" API.
        b. References obtained using "get" calls should not be closed
                explicitly.
        c. All "opened" references have to be closed with a call to
                their corresponding "close" call. This takes care of
                freeing structure references obtained with "get" calls.
.....

I have checked all other sysfs_close_* calls and they seem to be
correct.

Attached patch removes the wrong call, so i can operate correctly on
my bridges.

12 years agoIf addif fails report whether bridge or interface doesn't exist.
Stephen Hemminger [Tue, 11 Jul 2006 23:02:37 +0000 (16:02 -0700)]
If addif fails report whether bridge or interface doesn't exist.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=348617

12 years agoMinor manpage typo
Stephen Hemminger [Tue, 11 Jul 2006 22:41:42 +0000 (15:41 -0700)]
Minor manpage typo
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=296881

12 years agoFix bug where changing port priority changed path cost instead.
Stephen Hemminger [Wed, 31 May 2006 21:20:30 +0000 (14:20 -0700)]
Fix bug where changing port priority changed path cost instead.

13 years agoFix bugs with new sysfsutils library interface v1.1
shemminger [Wed, 1 Feb 2006 17:58:00 +0000 (17:58 +0000)]
Fix bugs with new sysfsutils library interface

13 years agoMore fixes for sysfs 2.0 code.
shemminger [Tue, 31 Jan 2006 20:01:16 +0000 (20:01 +0000)]
More fixes for sysfs 2.0 code.

13 years agoFix up new sysfs code.
shemminger [Tue, 31 Jan 2006 19:53:48 +0000 (19:53 +0000)]
Fix up new sysfs code.

13 years agoUpdate for v1.1
shemminger [Tue, 31 Jan 2006 19:46:44 +0000 (19:46 +0000)]
Update for v1.1

13 years agoUpdate bridge utils to support new sysfsutils 2.0 version
shemminger [Tue, 31 Jan 2006 19:33:58 +0000 (19:33 +0000)]
Update bridge utils to support new sysfsutils 2.0 version
of libsysfs

14 years agoFix sysfs detection to include -lsysfs v1.0.6
shemminger [Wed, 16 Mar 2005 20:15:46 +0000 (20:15 +0000)]
Fix sysfs detection to include -lsysfs

14 years agoFix sysfs detection to work on Suse
shemminger [Wed, 16 Mar 2005 19:39:50 +0000 (19:39 +0000)]
Fix sysfs detection to work on Suse

14 years ago1,0.6 fix sysfs detection and allow multiple interfaces for add/del
shemminger [Wed, 16 Mar 2005 19:18:32 +0000 (19:18 +0000)]
1,0.6 fix sysfs detection and allow multiple interfaces for add/del

14 years ago1.0.5 updates v1.0.5
shemminger [Thu, 2 Dec 2004 19:00:24 +0000 (19:00 +0000)]
1.0.5 updates

14 years agoAdd port_no back to port_info v1.0.4
shemminger [Tue, 8 Jun 2004 15:57:46 +0000 (15:57 +0000)]
Add port_no back to port_info

14 years agoGet rid of all visible signs of port number and ifindex v1.0.4-rc3
shemminger [Fri, 4 Jun 2004 18:03:40 +0000 (18:03 +0000)]
Get rid of all visible signs of port number and ifindex
from API, and display output.

Fix foreach_port for case when /sys is missing (but compiled for sysfs).

14 years agoWorkaround older libraries with buste if_indextoname etc. v1.0.4-rc2
shemminger [Thu, 3 Jun 2004 22:10:06 +0000 (22:10 +0000)]
Workaround older libraries with buste if_indextoname etc.

14 years agoError handling, and build cleanup v1.0.4-rc1
shemminger [Wed, 2 Jun 2004 17:38:20 +0000 (17:38 +0000)]
Error handling, and build cleanup

14 years agoMakefile is built by autoconf
shemminger [Wed, 2 Jun 2004 17:37:11 +0000 (17:37 +0000)]
Makefile is built by autoconf

14 years agoFix libraries on older systems (no lsysfs).
shemminger [Tue, 1 Jun 2004 17:50:22 +0000 (17:50 +0000)]
Fix libraries on older systems (no lsysfs).

14 years agoFix set_port parameter values (more ifindex confustion). v1.0.3
shemminger [Fri, 28 May 2004 20:38:38 +0000 (20:38 +0000)]
Fix set_port parameter values (more ifindex confustion).

14 years agoFix problems relating to ifindex vs. index in the
shemminger [Fri, 28 May 2004 18:00:28 +0000 (18:00 +0000)]
Fix problems relating to ifindex vs. index in the
get port info arguments.

14 years ago1.0.2 - fix get_port_info, confusion about bridge name vs port name. v1.0.2
shemminger [Thu, 27 May 2004 18:15:12 +0000 (18:15 +0000)]
1.0.2 - fix get_port_info, confusion about bridge name vs port name.

14 years agoFix issues found testing on earlier 2.6 systems v1.0.1
shemminger [Thu, 27 May 2004 16:50:56 +0000 (16:50 +0000)]
Fix issues found testing on earlier 2.6 systems

14 years agotypo on changelog date v1.0
shemminger [Tue, 25 May 2004 18:47:17 +0000 (18:47 +0000)]
typo on changelog date

14 years agoAllow LDFLAGS, add URL to spec
shemminger [Tue, 25 May 2004 18:36:27 +0000 (18:36 +0000)]
Allow LDFLAGS, add URL to spec

14 years agoUpdate ChangeLog
shemminger [Mon, 24 May 2004 23:25:45 +0000 (23:25 +0000)]
Update ChangeLog

14 years agoAdd config.h.in ChangeLog
shemminger [Mon, 24 May 2004 23:06:37 +0000 (23:06 +0000)]
Add config.h.in

14 years agoPut tests in CVS
shemminger [Mon, 24 May 2004 22:47:43 +0000 (22:47 +0000)]
Put tests in CVS

14 years agoNew version of command and library that use sysfs.
shemminger [Fri, 21 May 2004 17:41:48 +0000 (17:41 +0000)]
New version of command and library that use sysfs.
Update make system to build with or without sysfs.

14 years agoFix install to work with RPM... Finally.
shemminger [Tue, 11 May 2004 22:58:13 +0000 (22:58 +0000)]
Fix install to work with RPM... Finally.

14 years agoCleanup old directory
shemminger [Tue, 11 May 2004 22:38:41 +0000 (22:38 +0000)]
Cleanup old directory

14 years agoFix for RPM build
shemminger [Tue, 11 May 2004 22:28:08 +0000 (22:28 +0000)]
Fix for RPM build

14 years agoMore build fixes
shemminger [Tue, 11 May 2004 22:13:03 +0000 (22:13 +0000)]
More build fixes

14 years agoMore build fixes
shemminger [Tue, 11 May 2004 22:06:42 +0000 (22:06 +0000)]
More build fixes

14 years agoFix RPM build
shemminger [Tue, 11 May 2004 21:51:03 +0000 (21:51 +0000)]
Fix RPM build

14 years agoChange spec for 1.0
shemminger [Tue, 11 May 2004 21:32:22 +0000 (21:32 +0000)]
Change spec for 1.0

14 years agoChange to 1.0
shemminger [Tue, 11 May 2004 21:22:28 +0000 (21:22 +0000)]
Change to 1.0

14 years agoUpdate for 1.0. Use new ioct interface.
shemminger [Tue, 11 May 2004 19:46:58 +0000 (19:46 +0000)]
Update for 1.0.  Use new ioct interface.

14 years agoSupport for 1000's of ports on bridge. v0.9.8
shemminger [Tue, 13 Apr 2004 22:51:05 +0000 (22:51 +0000)]
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

14 years agoChanges for 0.9.8
shemminger [Wed, 7 Apr 2004 23:18:04 +0000 (23:18 +0000)]
Changes for 0.9.8
- cleanup dependicies
- allow 4k ports
- don't fetch info till needed.

14 years agoMissed one file in last merge. this adds const to brctl_disp v0.9.7
shemminger [Thu, 1 Apr 2004 22:11:15 +0000 (22:11 +0000)]
Missed one file in last merge.  this adds const to brctl_disp

14 years agoFixes for 0.9.7
shemminger [Thu, 1 Apr 2004 22:01:19 +0000 (22:01 +0000)]
Fixes for 0.9.7
- error checking
- handle upto 1000's of bridges
- -V version
- don't initialize bridge till have to.

15 years agoFrom: John Naylon <jbpn@cambridgebroadband.com>
shemminger [Fri, 9 May 2003 18:42:03 +0000 (18:42 +0000)]
From: John Naylon <jbpn@cambridgebroadband.com>

 Please find attached a patch which fixes a minor bug in libbridge.  This
only affects long-running processes that may call br_refresh() multiple
times, i.e. it doesn't affect brctl but may affect brctld, although I
have not seen this myself (I discovered the bug while working on another
process that links against libbridge).

  Basically, if you call br_refresh() when there are one or more bridges up,
take all bridges down and call br_refresh() again, and finally call
br_refresh() once more, your process will probably seg fault because
bridge_list is not NULL, but points at previously-free()d memory on the
third call.

15 years agoWhen stress testing and devices disappear, it is possible
shemminger [Fri, 25 Apr 2003 00:13:25 +0000 (00:13 +0000)]
When stress testing and devices disappear, it is possible
to have races where the index that was found is gone.
Manage this by ignoring disappeared devices when the initial
port table is built up.

15 years agoIn case of race and EAGAIN error, retry in the library.
shemminger [Fri, 25 Apr 2003 00:11:52 +0000 (00:11 +0000)]
In case of race and EAGAIN error, retry in the library.

15 years agoadd and del bridge functions can take 'const char *'
shemminger [Fri, 25 Apr 2003 00:11:01 +0000 (00:11 +0000)]
add and del bridge functions can take 'const char *'

15 years agoread_info and port are only used in one function so can be static.
shemminger [Fri, 25 Apr 2003 00:10:07 +0000 (00:10 +0000)]
read_info and port are only used in one function so can be static.

15 years agoIf read of bridge forwarding table fails, then print error and exit.
shemminger [Fri, 25 Apr 2003 00:09:11 +0000 (00:09 +0000)]
If read of bridge forwarding table fails, then print error and exit.

16 years agoRelease 0.9.6.
buytenh [Wed, 2 Oct 2002 04:22:29 +0000 (04:22 +0000)]
Release 0.9.6.

16 years agoautoconfization by Andreas Hofmeister
buytenh [Wed, 3 Apr 2002 16:19:36 +0000 (16:19 +0000)]
autoconfization by Andreas Hofmeister

16 years agoRelease 0.9.5.
buytenh [Wed, 3 Apr 2002 16:19:15 +0000 (16:19 +0000)]
Release 0.9.5.

17 years agoAnd make make clean work again.
buytenh [Wed, 16 Jan 2002 12:08:35 +0000 (12:08 +0000)]
And make make clean work again.

17 years agoTypo :(
buytenh [Wed, 16 Jan 2002 12:06:50 +0000 (12:06 +0000)]
Typo :(

17 years agoWork around sparc64 brokenness some more.
buytenh [Wed, 16 Jan 2002 12:01:07 +0000 (12:01 +0000)]
Work around sparc64 brokenness some more.

17 years agoGet rid of rcsclean and rm -f *~ shit.
buytenh [Wed, 16 Jan 2002 11:52:47 +0000 (11:52 +0000)]
Get rid of rcsclean and rm -f *~ shit.

17 years agoWork around sparc64 brokenness.
buytenh [Wed, 16 Jan 2002 11:51:27 +0000 (11:51 +0000)]
Work around sparc64 brokenness.

17 years ago0.9.3 -> 0.9.4
buytenh [Sun, 6 Jan 2002 11:50:28 +0000 (11:50 +0000)]
0.9.3 -> 0.9.4