Home | History | Annotate | Download | only in brconfig
History log of /src/sbin/brconfig/brconfig.c
RevisionDateAuthorComments
 1.18  03-Sep-2024  ozaki-r brconfig: add protect/-protect commands

It marks/clears a specified interface "protected".
 1.17  01-Jun-2015  matt branches: 1.17.26; 1.17.28;
Use the new BRDGGIFS and BRDGRTS cmds which just use ifdrv directly.
 1.16  28-May-2015  joerg constness doesn't increase by applying more const.
 1.15  28-May-2015  matt Constify an array of strings.
 1.14  23-Aug-2012  drochner the address expire counter is just a time difference; it can turn
negative after the timer expired until the entry is deleted.
make it signed, so that we don't get output like
"00:1b:78:12:50:46 wm0 18446744073709551349 flags=0<>"
 1.13  29-Aug-2011  joerg branches: 1.13.2;
static + __dead
 1.12  16-Mar-2009  lukem fix sign-compare issues
 1.11  20-Mar-2006  christos branches: 1.11.30;
Coverity CID 774: Don't increment a pointer *before* testing it for NULL!
 1.10  20-Mar-2005  yamt remove IFFBITS definition. now net/if.h has it.

PR/29748 from FUKAUMI Naoki.
 1.9  20-Jan-2005  xtraeme Remove main() prototype; WARNS=3
 1.8  28-Oct-2004  dsl Add (unsigned char) to isdidgit call
 1.7  19-Sep-2003  itojun realloc pedant
 1.6  23-Jun-2003  agc Add NetBSD RCS Ids.
 1.5  19-Mar-2003  bouyer Fix 2 bugs:
- initialise stp when the bridge is turned up, without this stp will keep
all interfaces disabled in a sequence like:
brconfig bridge0 add if0 add if1 stp if0 stp if1 up
- s/BRDGSPRI/BRDGSIFPRIO in brconfig.c:cmd_ifpriority()

add a command (ifpathcost) to change the stp path cost of the STP path cost of
an interface. Display the interface path cost with the others STP parameters.
 1.4  27-Feb-2003  perseant Make BRIDGE_IPF an option, and document it. Add it (commented) to GENERIC.
Let brconfig tell whether the bridge is using the ipfilter hook, or not.
 1.3  15-Feb-2003  perseant Add ipf packet-filtering option to if_bridge. The option is controlled at
compile-time by BRIDGE_IPF, and at runtime by brconfig with the {ipf,-ipf}
option on a per-bridge basis.

As a side-effect, add PFIL_HOOKS processing to if_bridge.
 1.2  06-Nov-2002  enami Fix typo in error message.
 1.1  17-Aug-2001  thorpej branches: 1.1.2;
Configuration utility for bridge(4) devices.
 1.1.2.1  30-Jun-2003  grant Apply patch (requested by bouyer in ticket #1355):

Fix 2 bugs:
- initialise stp when the bridge is turned up, without this stp will
keep all interfaces disabled in a sequence like:
brconfig bridge0 add if0 add if1 stp if0 stp if1 up
- s/BRDGSPRI/BRDGSIFPRIO in brconfig.c:cmd_ifpriority()

add a command (ifpathcost) to change the stp path cost of the STP path
cost of an interface. Display the interface path cost with the others
STP parameters.
 1.11.30.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.13.2.1  30-Oct-2012  yamt sync with head
 1.17.28.1  02-Aug-2025  perseant Sync with HEAD
 1.17.26.1  05-Sep-2024  martin Pull up following revision(s) (requested by ozaki-r in ticket #818):

sys/net/if_bridgevar.h: revision 1.39
sbin/brconfig/brconfig.c: revision 1.18
tests/net/if_bridge/unicast.pcap.uue: revision 1.1
tests/net/if_bridge/t_bridge.sh: revision 1.20
sbin/brconfig/brconfig.8: revision 1.21
tests/net/if_bridge/t_bridge.sh: revision 1.21
sys/net/if_bridge.c: revision 1.194
tests/net/if_bridge/Makefile: revision 1.4
distrib/sets/lists/tests/mi: revision 1.1336
tests/net/if_bridge/broadcast.pcap.uue: revision 1.1

bridge: implement interface protection

It enables a feature similar to "protected-port" or "isolation" in some
router products by marking member interfaces protected; when a frame
arrives on a protected interface and is being forwarded to another
protected interface, the frame will be discarded.

The code is developed by the SEIL team at IIJ.

tests: dedup test scripts like others

brconfig: add protect/-protect commands

It marks/clears a specified interface "protected".
tests, bridge: add tests for interface protection

The original author of the test is k-goda@IIJ. ozaki-r improved
the test slightly.

distrib: install uuencoded pcap files for testing

RSS XML Feed