OpenBSD CVS

CVS log for src/sbin/brconfig/Attic/brconfig.c


[BACK] Up to [local] / src / sbin / brconfig

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.44, Sun Nov 22 23:33:22 2009 UTC (14 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: HEAD
Changes since 1.43: +1 -1 lines
FILE REMOVED

brconfig(8) functionality is now in ifconfig(8)

Revision 1.43 / (download) - annotate - [select for diffs], Thu Nov 5 20:30:55 2009 UTC (14 years, 7 months ago) by todd
Branch: MAIN
Changes since 1.42: +3 -1 lines
Diff to previous 1.42 (colored)

adding an interface if it already is added should be successful, not give a
bogus and misleading error, this permits re-running bridgename.if(5) files etc
without confusion
prodded/found by deraadt@
ok deraadt@ phessler@ henning@ stsp@

Revision 1.42 / (download) - annotate - [select for diffs], Mon Jan 1 20:11:17 2007 UTC (17 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.41: +8 -3 lines
Diff to previous 1.41 (colored)

- merge first two synopses
- standard options list
- sync usage()

started by a diff from stevesk;
usage() help from dlg;
ok reyk;

Revision 1.41 / (download) - annotate - [select for diffs], Sun Dec 31 10:44:52 2006 UTC (17 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

-A before -a;

Revision 1.40 / (download) - annotate - [select for diffs], Sat Dec 30 18:43:41 2006 UTC (17 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

add -A to usage().

thanks to Sven-Volker Nowarra

Revision 1.39 / (download) - annotate - [select for diffs], Mon Dec 11 22:11:48 2006 UTC (17 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.38: +14 -14 lines
Diff to previous 1.38 (colored)

refer to the RSTP point to point option as "PTP" instead of "P2P".
P2P is commonly used in relation to peer to peer networks, PTP is used
in various protocols for layer 2 point to point links (ie., full
duplex ethernet links).

note that the newly added brconfig commands [-]p2p and [-]autop2p will
change to [-]ptp and [-]autoptp.

suggested by Andrew Thompson (thompsa@freebsd.org)

Revision 1.38 / (download) - annotate - [select for diffs], Sun Dec 3 13:41:19 2006 UTC (17 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.37: +238 -43 lines
Diff to previous 1.37 (colored)

Add Rapid Spanning Tree Protocol support (802.1d-2004) based on work
by Andrew Thompson (thompsa@freebsd.org). The local changes include
adoption to our bridge code, reduced stack usage and many other bits.
If stp is enabled, RSTP will now be used by default.

Thanks for help from Andrew.

This code has been in snaps for while now, commit encouraged by deraadt@

Revision 1.37 / (download) - annotate - [select for diffs], Tue Jul 25 00:26:42 2006 UTC (17 years, 10 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.36: +20 -9 lines
Diff to previous 1.36 (colored)

better yet, make this use getopt for argument processing;
"looks good" kettenis@

Revision 1.36 / (download) - annotate - [select for diffs], Mon Jul 24 08:02:43 2006 UTC (17 years, 10 months ago) by djm
Branch: MAIN
Changes since 1.35: +9 -9 lines
Diff to previous 1.35 (colored)

make "brconfig" with no arguments equivalent to "brconfig -a",
following the similar change to ifconfig; 'nice' deraadt@

Revision 1.35 / (download) - annotate - [select for diffs], Mon Mar 20 20:01:34 2006 UTC (18 years, 2 months ago) by dhill
Branch: MAIN
Changes since 1.34: +3 -2 lines
Diff to previous 1.34 (colored)

NetBSD Coverity CID 774: Don't increment a pointer *before* testing it for NULL!

ok otto@

Revision 1.34 / (download) - annotate - [select for diffs], Wed Dec 21 01:40:23 2005 UTC (18 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

Userland programs should include <errno.h> not <sys/errno.h>
OK deraadt@

Revision 1.33 / (download) - annotate - [select for diffs], Tue Sep 14 22:13:03 2004 UTC (19 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.32: +4 -4 lines
Diff to previous 1.32 (colored)

remove unused variable

Revision 1.32 / (download) - annotate - [select for diffs], Thu May 27 07:41:58 2004 UTC (20 years ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.31: +9 -15 lines
Diff to previous 1.31 (colored)

Rule parser improvements: line numbers, no nl at eof, handling of lines
with too many tokens. Based on diff from Jared Yanovich.
ok tdeval@ deraadt@

Revision 1.31 / (download) - annotate - [select for diffs], Sun May 23 06:47:49 2004 UTC (20 years ago) by deraadt
Branch: MAIN
Changes since 1.30: +5 -13 lines
Diff to previous 1.30 (colored)

do not free before going to exit path; andrushock@korovino.net

Revision 1.30 / (download) - annotate - [select for diffs], Mon Mar 8 17:23:33 2004 UTC (20 years, 3 months ago) by mcbride
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.29: +6 -1 lines
Diff to previous 1.29 (colored)

Prevent user from specifying an interface name longer than IFNAMSIZ.

ok millert@

Revision 1.29 / (download) - annotate - [select for diffs], Tue Mar 2 21:01:00 2004 UTC (20 years, 3 months ago) by tdeval
Branch: MAIN
Changes since 1.28: +25 -23 lines
Diff to previous 1.28 (colored)

64-bits datatype fixes for strto(u)l conversions.
From Daniel Lucq, through and OK by henning@

Revision 1.28 / (download) - annotate - [select for diffs], Thu Jan 1 00:02:06 2004 UTC (20 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.27: +5 -2 lines
Diff to previous 1.27 (colored)

use warnx for ENXIO devices, so that it says "Device not configured".  For
other errors, continue too use the "is not a bridge" mantra.

Revision 1.27 / (download) - annotate - [select for diffs], Fri Sep 26 03:29:59 2003 UTC (20 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.26: +28 -16 lines
Diff to previous 1.26 (colored)

realloc properly; ok jason

Revision 1.26 / (download) - annotate - [select for diffs], Wed Jun 25 09:44:55 2003 UTC (20 years, 11 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.25: +26 -6 lines
Diff to previous 1.25 (colored)

allow bridge filter rules to specify a tag.
if a packet matches such a rule it is tagged accordingly and pf can
filter based on that tag.
this allows, for example, bridge to be used as classifier for pf, and thus
gives all the power of pf based on mac address filters.

please note that currently the bridge filters only apply to packets
which are not destined for the local host.

ok deraadt@ jason@ dhartmei@

Revision 1.25 / (download) - annotate - [select for diffs], Mon Jun 2 18:44:35 2003 UTC (21 years ago) by jason
Branch: MAIN
Changes since 1.24: +1 -6 lines
Diff to previous 1.24 (colored)

nuke clause 3 & 4

Revision 1.24 / (download) - annotate - [select for diffs], Fri May 30 21:16:50 2003 UTC (21 years ago) by henning
Branch: MAIN
Changes since 1.23: +4 -4 lines
Diff to previous 1.23 (colored)

o timeout is int, not u_int32_t
o reject negative timeouts

ok jason@

Revision 1.23 / (download) - annotate - [select for diffs], Wed Dec 18 16:10:27 2002 UTC (21 years, 5 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.22: +1 -2 lines
Diff to previous 1.22 (colored)

remove dup include

Revision 1.22 / (download) - annotate - [select for diffs], Mon Dec 9 23:57:31 2002 UTC (21 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.21: +2 -6 lines
Diff to previous 1.21 (colored)

KNF

Revision 1.21 / (download) - annotate - [select for diffs], Mon Dec 9 12:34:08 2002 UTC (21 years, 6 months ago) by markus
Branch: MAIN
Changes since 1.20: +2 -3 lines
Diff to previous 1.20 (colored)

KNF

Revision 1.20 / (download) - annotate - [select for diffs], Mon Dec 9 10:11:53 2002 UTC (21 years, 6 months ago) by markus
Branch: MAIN
Changes since 1.19: +42 -3 lines
Diff to previous 1.19 (colored)

allow setting of ifcost with brconfig.  enables selection of preferred
port/path to root bridge among several LANs.   unlike ifpriority, which
allows you to select designated port if serveral interfaces belong
to the same LAN;  ok jason@

Revision 1.19 / (download) - annotate - [select for diffs], Wed Jul 3 22:32:32 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.18: +34 -103 lines
Diff to previous 1.18 (colored)

ansi

Revision 1.18 / (download) - annotate - [select for diffs], Mon Jul 1 21:43:21 2002 UTC (21 years, 11 months ago) by jason
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

cut and pasto (fetch maxage correctly); Benny Holmgren <bigfoot@astrakan.hig.se>

Revision 1.17 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:33 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.16: +35 -35 lines
Diff to previous 1.16 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.16 / (download) - annotate - [select for diffs], Sat Dec 15 09:03:23 2001 UTC (22 years, 6 months ago) by jason
Branch: MAIN
Changes since 1.15: +39 -77 lines
Diff to previous 1.15 (colored)

KNF (A completely different idea)

Revision 1.15 / (download) - annotate - [select for diffs], Sat Dec 15 08:40:56 2001 UTC (22 years, 6 months ago) by jason
Branch: MAIN
Changes since 1.14: +64 -3 lines
Diff to previous 1.14 (colored)

add support for creating span ports so that one can snoop a bridge
from another interface/machine/network.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Dec 5 09:57:20 2001 UTC (22 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

documentation nits

Revision 1.13 / (download) - annotate - [select for diffs], Mon Nov 5 07:39:16 2001 UTC (22 years, 7 months ago) by mpech
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

kill more registers;

millert@ ok

Revision 1.12 / (download) - annotate - [select for diffs], Tue Feb 27 20:51:21 2001 UTC (23 years, 3 months ago) by jason
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

consistent printf

Revision 1.11 / (download) - annotate - [select for diffs], Mon Feb 12 15:45:18 2001 UTC (23 years, 4 months ago) by jakob
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

skip empty lines in rulefile. ok jason@

Revision 1.10 / (download) - annotate - [select for diffs], Tue Dec 12 03:41:22 2000 UTC (23 years, 6 months ago) by jason
Branch: MAIN
Changes since 1.9: +294 -19 lines
Diff to previous 1.9 (colored)

Add support for 802.1D spanning tree protocol.
NOTE: this requires recompiling brconfig with updated include files.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Nov 10 04:42:13 2000 UTC (23 years, 7 months ago) by jason
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

unused bit in display string

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Fri Oct 6 20:40:26 2000 UTC (23 years, 8 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.6: +4 -3 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

Pull in patch from current (more to come...):
Fix (millert):
warnx?/errx? paranoia (use "%s" not a bare string unless it is a
constant).  These are not security holes but it is worth fixing
them anyway both for robustness and so folks looking for examples
in the tree are not misled into doing something potentially dangerous.
Furthermore, it is a bad idea to assume that pathnames will not
include '%' in them and that error routines don't return strings
with '%' in them (especially in light of the possibility of locales).

Revision 1.8 / (download) - annotate - [select for diffs], Mon Jul 3 17:21:26 2000 UTC (23 years, 11 months ago) by jason
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.7: +3 -2 lines
Diff to previous 1.7 (colored)

plug 2 memory leaks; reported by andrew.lunn@ascom.ch.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jun 30 16:00:08 2000 UTC (23 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

warnx?/errx? paranoia (use "%s" not a bare string unless it is a
constant).  These are not security holes but it is worth fixing
them anyway both for robustness and so folks looking for examples
in the tree are not misled into doing something potentially dangerous.
Furthermore, it is a bad idea to assume that pathnames will not
include '%' in them and that error routines don't return strings
with '%' in them (especially in light of the possibility of locales).

Revision 1.6 / (download) - annotate - [select for diffs], Fri Feb 4 06:32:04 2000 UTC (24 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE
Branch point for: OPENBSD_2_7
Changes since 1.5: +14 -8 lines
Diff to previous 1.5 (colored)

show the rules

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jan 25 22:06:27 2000 UTC (24 years, 4 months ago) by jason
Branch: MAIN
Changes since 1.4: +281 -3 lines
Diff to previous 1.4 (colored)

add ethernet MAC filtering capability
also includes split of bridgeintr() with some optimizations for quicker
frame handling

Revision 1.4 / (download) - annotate - [select for diffs], Mon Jan 10 22:14:25 2000 UTC (24 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.3: +34 -2 lines
Diff to previous 1.3 (colored)

blocknonip flag -- use it on a per-interface basis to not accept from
and not forward to said interface traffic that's not
IPv4/IPv6/ARP/ReverseARP

Revision 1.3 / (download) - annotate - [select for diffs], Fri Dec 3 03:38:23 1999 UTC (24 years, 6 months ago) by jason
Branch: MAIN
Changes since 1.2: +22 -22 lines
Diff to previous 1.2 (colored)

make error messages more intuitive

Revision 1.2 / (download) - annotate - [select for diffs], Fri Sep 3 12:47:12 1999 UTC (24 years, 9 months ago) by jason
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.1: +7 -23 lines
Diff to previous 1.1 (colored)

Don't delete the cache on down/up transitions unless it's empty.  Instead
flush the dynamics.  Required other handling of the cache table to accomodate.
Modify SIOCBRDGFLUSH to handle flushall and flush dynamic requests.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Sep 1 03:28:01 1999 UTC (24 years, 9 months ago) by deraadt
Branch: MAIN

move brconfig to /sbin, where it belongs

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.