Home | History | Annotate | only in /src/tests/net/if_bridge
History log of /src/tests/net/if_bridge
RevisionDateAuthorComments
 1.4 03-Sep-2024  ozaki-r tests, bridge: add tests for interface protection

The original author of the test is k-goda@IIJ. ozaki-r improved
the test slightly.
 1.3 11-Mar-2017  ozaki-r branches: 1.3.22; 1.3.24;
Separate tests for learning table of bridge
 1.2 24-Nov-2016  ozaki-r branches: 1.2.2;
Move get_macaddr to net_common.sh
 1.1 18-Sep-2014  ozaki-r branches: 1.1.2;
Add net/if_bridge test
 1.1.2.2 20-Mar-2017  pgoyette Sync with HEAD
 1.1.2.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.2.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.3.24.1 02-Aug-2025  perseant Sync with HEAD
 1.3.22.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
 1.1 03-Sep-2024  ozaki-r branches: 1.1.2; 1.1.6;
tests, bridge: add tests for interface protection

The original author of the test is k-goda@IIJ. ozaki-r improved
the test slightly.
 1.1.6.2 02-Aug-2025  perseant Sync with HEAD
 1.1.6.1 03-Sep-2024  perseant file broadcast.pcap.uue was added on branch perseant-exfatfs on 2025-08-02 05:58:10 +0000
 1.1.2.2 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
 1.1.2.1 03-Sep-2024  martin file broadcast.pcap.uue was added on branch netbsd-10 on 2024-09-05 09:27:13 +0000
 1.21 03-Sep-2024  ozaki-r tests, bridge: add tests for interface protection

The original author of the test is k-goda@IIJ. ozaki-r improved
the test slightly.
 1.20 03-Sep-2024  ozaki-r tests: dedup test scripts like others
 1.19 19-Aug-2019  ozaki-r branches: 1.19.8; 1.19.10;
tests: use rump_server_add_iface to create interfaces
 1.18 01-Feb-2018  ozaki-r branches: 1.18.4;
Commonalize and add tests of creating/destroying interfaces
 1.17 11-Mar-2017  ozaki-r branches: 1.17.4;
Separate tests for learning table of bridge
 1.16 25-Nov-2016  ozaki-r branches: 1.16.2;
Share rump_server start/stop and interface creation/destruction functions

The common functions store socks of rump_servers, interfaces of rump_servers
and buses that intefaces connect and allow to destroy them with common
functions without specifying which socks, interfaces and buses we should
destroy.

This change reduces lots of similar setup/cleanup codes.
 1.15 25-Nov-2016  ozaki-r Add $DEBUG and remove a unused function
 1.14 24-Nov-2016  ozaki-r Move get_macaddr to net_common.sh
 1.13 10-Aug-2016  kre + -lrumpdev (and avoid doing stuff twice).
 1.12 21-Jun-2016  ozaki-r branches: 1.12.2;
Make a bunch of test names self-descriptive
 1.11 07-Aug-2015  ozaki-r Use rump.ping6 instead of ping6 with rumphijack(3)
 1.10 23-Jul-2015  ozaki-r Reflect a fix for bridge

Due to PR 48104, some tests of ping/ping6 were failed but the tests now
should be successful. So reverse atf_check.

Bonus: the fix for PR 48104 also fixes another uknown failure.
 1.9 10-Jun-2015  ozaki-r Add missing cleanup
 1.8 09-Jun-2015  ozaki-r Add tests for bridge members with an IP address

The tests include checks for PR#48104 which is not fixed yet.

Note that one test unexpectedly fails for some reason
(unrelated to PR#48104). We have to fix it somehow.
 1.7 29-May-2015  ozaki-r Disable test_ping_failure which is conducted before setup_bridge

It randomly fails (esp, often on a slow or loaded machine) due to
PR kern/49219, so disable it for now.

I forgot why I didn't include the test when I committed the test
at first and wrongly added it at v1.4.
 1.6 29-May-2015  ozaki-r Bump timeout for ping and ping6 to 5 sec

Hope the wait is enough for slow machines, e.g., qemu/anita/i386.
 1.5 29-May-2015  ozaki-r Get rid of unnecessary shebang

It will be added when it's built.
 1.4 16-May-2015  ozaki-r Enable IPv6 negative tests

As ping6 timeout feature (-X option) is added, we can do negative
tests without wasting time.

1 sec delay is added after network setup to avoid false positives.
 1.3 08-Jan-2015  ozaki-r Add tests for brconfig maxaddr
 1.2 07-Jan-2015  ozaki-r Add some tests for rtable operations of if_bridge
 1.1 18-Sep-2014  ozaki-r Add net/if_bridge test
 1.12.2.2 20-Mar-2017  pgoyette Sync with HEAD
 1.12.2.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.16.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.17.4.1 26-Feb-2018  snj Pull up following revision(s) (requested by ozaki-r in ticket #572):
sys/net/if_bridge.c: 1.138, 1.148
tests/net/if_bridge/t_bridge.sh: 1.18
tests/net/if_gif/t_gif.sh: 1.12
tests/net/if_ipsec/t_ipsec.sh: 1.3
tests/net/if_l2tp/t_l2tp.sh: 1.4
tests/net/if_loop/t_basic.sh: 1.2
tests/net/if_pppoe/t_pppoe.sh: 1.18
tests/net/if_tap/t_tap.sh: 1.7
tests/net/if_tun/Makefile: 1.2
tests/net/if_tun/t_tun.sh: 1.5
tests/net/if_vlan/t_vlan.sh: 1.8
tests/net/net_common.sh: 1.26
Remove unnecessary splsoftnet
--
If the bridge is not running, don't call bridge_stop. Otherwise the
following commands will crash the kernel:
ifconfig bridge0 create
ifconfig bridge0 destroy
--
Commonalize and add tests of creating/destroying interfaces
 1.18.4.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.19.10.1 02-Aug-2025  perseant Sync with HEAD
 1.19.8.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
 1.8 26-Mar-2023  andvar fix various typos in documentation, comments and sysctl device description.
mainly aion -> ation and inlude -> include.
 1.7 19-Aug-2019  ozaki-r tests: use rump_server_add_iface to create interfaces
 1.6 09-Jul-2019  ozaki-r tests: check that a new cache is not created over the limit
 1.5 31-May-2019  gson Increase the timeout for the manyaddrs test case; the default is often
insufficient under qemu.
 1.4 09-Nov-2018  ozaki-r Add a test to show a large number of MAC addresses cached in a bridge
 1.3 18-Apr-2018  ozaki-r branches: 1.3.2;
Add a test that checks if brconfig flush surely removes all entries
 1.2 10-Apr-2018  ozaki-r Add a test case for bridge_rtdelete
 1.1 11-Mar-2017  ozaki-r branches: 1.1.2; 1.1.4; 1.1.8; 1.1.14;
Separate tests for learning table of bridge
 1.1.14.3 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.1.14.2 22-Apr-2018  pgoyette Sync with HEAD
 1.1.14.1 16-Apr-2018  pgoyette Sync with HEAD, resolve some conflicts
 1.1.8.2 18-Apr-2018  martin Pull up following revision(s) (requested by ozaki-r in ticket #777):

tests/net/if_bridge/t_rtable.sh: revision 1.3
sys/net/if_bridge.c: revision 1.150-1.154
sys/net/if_bridgevar.h: revision 1.32

Remove obsolete NULL checks

Simplify bridge_rtnode_insert (NFC)

bridge: use pslist(9) for rtlist and rthash

The change fixes race conditions on list operations. One example is that a
reader may see invalid pointers on a looking item in a list due to lack of
membar_producer.

Add a test that checks if brconfig flush surely removes all entries

Get rid of a unnecessary semicolon
Pointed out by kamil@

Add missing PSLIST_ENTRY_INIT and PSLIST_ENTRY_DESTROY
 1.1.8.1 10-Apr-2018  martin Pull up following revision(s) (requested by ozaki-r in ticket #727):

tests/net/if_bridge/t_rtable.sh: revision 1.2
sys/net/if_bridge.c: revision 1.149

Fix bridge_rtdelete

It removes a rtable entry that belongs to a specified interface, however,
its original behavior was to delete all belonging entries.
Restore the original behavior.

Add a test case for bridge_rtdelete
 1.1.4.2 21-Apr-2017  bouyer Sync with HEAD
 1.1.4.1 11-Mar-2017  bouyer file t_rtable.sh was added on branch bouyer-socketcan on 2017-04-21 16:54:12 +0000
 1.1.2.2 20-Mar-2017  pgoyette Sync with HEAD
 1.1.2.1 11-Mar-2017  pgoyette file t_rtable.sh was added on branch pgoyette-localcount on 2017-03-20 06:58:01 +0000
 1.3.2.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.3.2.1 10-Jun-2019  christos Sync with HEAD
 1.1 03-Sep-2024  ozaki-r branches: 1.1.2; 1.1.6;
tests, bridge: add tests for interface protection

The original author of the test is k-goda@IIJ. ozaki-r improved
the test slightly.
 1.1.6.2 02-Aug-2025  perseant Sync with HEAD
 1.1.6.1 03-Sep-2024  perseant file unicast.pcap.uue was added on branch perseant-exfatfs on 2025-08-02 05:58:11 +0000
 1.1.2.2 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
 1.1.2.1 03-Sep-2024  martin file unicast.pcap.uue was added on branch netbsd-10 on 2024-09-05 09:27:12 +0000

RSS XML Feed