Home | History | Annotate | Download | only in if_vlan
History log of /src/tests/net/if_vlan/t_vlan.sh
RevisionDateAuthorComments
 1.27  18-Mar-2025  ozaki-r tests, vlan: add a test case for link state sync

A vlan interface synchronizes its link state with its parent's one.
 1.26  18-Mar-2025  ozaki-r tests: dedup t_vlan.sh like others (NFC)
 1.25  02-Nov-2023  yamaguchi branches: 1.25.2;
Added the test for vlan over l2tp
 1.24  19-Aug-2021  yamaguchi branches: 1.24.2;
Make the test program run in background after doing BIOCPROMISC

t_vlan has rarely failed by checking IFF_PROMISC before the
test program do BIOCPROMISC. To solve this, BIOCPROMISC is
done in the foreground.

fixes PR/56357
 1.23  14-Jul-2021  yamaguchi vlan: Added missing $HIJACKING before brconfig
 1.22  14-Jul-2021  yamaguchi Added tests for adding vlan(4) to a bridge and deleting from it

- add vlan(4) that has no parent interface to a bridge member
- the vlan(4) cannot be added to a bridge member
- detach the parent interface of vlan(4) that is in a bridge member
- vlan(4) is deleted from a bridge member at the detaching
 1.21  14-Jul-2021  yamaguchi Added a test about clearing IFF_PROMISC at vlan_unconfig

This test is related to PR/49196
 1.20  09-Jul-2021  yamaguchi added tests for IFF_PROMISC of vlan(4)
 1.19  06-Jul-2021  yamaguchi vlan: added checks of linkstate
 1.18  02-Jul-2021  yamaguchi Added tests for changing a MTU when the vlan(4) is added to bridge(4)

The tests is for PR kern/56292
 1.17  08-Mar-2020  nisimura address to ATF t_vlan failure. adapt ifmcstat(8) output format change.
 1.16  11-Nov-2019  yamaguchi atf: add test cases for MTU that is increased on SIOCSETVLAN

From t-kusaba@IIJ, thanks
 1.15  11-Dec-2018  ozaki-r branches: 1.15.2;
tests: add missing $af
 1.14  07-Dec-2018  ozaki-r tests: check error messages strictly
 1.13  07-Dec-2018  ozaki-r tests: reduce repeated phrases... (NFC)
 1.12  14-Nov-2018  knakahara let ATF detect a bug fixed by if_vla.c:r1.132.
 1.11  14-Jun-2018  yamaguchi branches: 1.11.2;
Update the error message in t_vlan (ENXIO => EINVAL)

ok ozaki-r@
 1.10  14-Jun-2018  yamaguchi Add test cases for multicast address handling of vlan(4)

ok ozaki-r@
 1.9  12-Jun-2018  ozaki-r Add tests of vlan with bridge

The tests trigger a panic reported in PR kern/53357.
 1.8  01-Feb-2018  ozaki-r branches: 1.8.2;
Commonalize and add tests of creating/destroying interfaces
 1.7  23-Nov-2017  kre Since there was already a test to verify that vlan tag 4096 is
detected as invalid, become the "someone" referred to in the
previous commit log, and add tests for 0 and 4095 as well, and
while here, throw in a few more that might elicit bugs.

And if the shell running the tests is able, add tests of a few
random vlan tags between 2 and 4093 (1 and 4094 are always tested)
to check that anything in range works (well, partially check...)
 1.6  23-Nov-2017  kre Don't attempt to test vlan tags 0 or 4095, which are now rejected
as invalid (perhaps someone could add a test to verify that they
continue to be rejected?)
 1.5  16-Nov-2017  msaitoh Add test case of vlan(4)'s re-configure without destroy
(see also if_vlan.c rev. 1.104). Written by s-yamaguchi@iij.
 1.4  11-Oct-2017  msaitoh Add a test case for duplicated VLAN ID.
 1.3  09-Aug-2017  knakahara Add counter check to vlan(4) ATF. Implemented by s-yamaguchi@IIJ, thanks.
 1.2  14-Jun-2017  ozaki-r Add test cases for vlan(4)

From s-yamaguchi@IIJ
 1.1  26-Nov-2016  ozaki-r branches: 1.1.2; 1.1.8;
Add basic tests for vlan(4)
 1.1.8.3  12-Jun-2018  snj Pull up following revision(s) (requested by ozaki-r in ticket #876):
sys/net/if_vlan.c: 1.126
tests/net/if_vlan/t_vlan.sh: 1.9
vlan: call ether_ifdetach without IFNET_LOCK
Fix PR kern/53357
--
Add tests of vlan with bridge
The tests trigger a panic reported in PR kern/53357.
 1.1.8.2  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.1.8.1  22-Nov-2017  martin Pull up following revision(s) (requested by msaitoh in ticket #380):
tests/net/if_vlan/t_vlan.sh: revision 1.2
tests/net/if_vlan/t_vlan.sh: revision 1.3
tests/net/if_vlan/t_vlan.sh: revision 1.4
tests/net/if_vlan/t_vlan.sh: revision 1.5
Add test cases for vlan(4)
From s-yamaguchi@IIJ
Add counter check to vlan(4) ATF. Implemented by s-yamaguchi@IIJ, thanks.
Add a test case for duplicated VLAN ID.
Add test case of vlan(4)'s re-configure without destroy
(see also if_vlan.c rev. 1.104). Written by s-yamaguchi@iij.
 1.1.2.2  07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.1.2.1  26-Nov-2016  pgoyette file t_vlan.sh was added on branch pgoyette-localcount on 2017-01-07 08:56:56 +0000
 1.8.2.3  26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.8.2.2  26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.8.2.1  25-Jun-2018  pgoyette Sync with HEAD
 1.11.2.3  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.11.2.2  08-Apr-2020  martin Merge changes from current as of 20200406
 1.11.2.1  10-Jun-2019  christos Sync with HEAD
 1.15.2.1  13-Nov-2019  martin Pull up following revision(s) (requested by yamaguchi in ticket #420):

sys/net/if_vlan.c: revision 1.148
tests/net/if_vlan/t_vlan.sh: revision 1.16

Fix a bug that vlan(4) fragments IPv6 packets
even the MTU > packet length.

The bug is appeared when the mtu is increased on SIOCSETVLAN.
From t-kusaba@IIJ

atf: add test cases for MTU that is increased on SIOCSETVLAN
From t-kusaba@IIJ, thanks
 1.24.2.2  29-Mar-2025  martin Pull up following revision(s) (requested by ozaki-r in ticket #1075):

tests/net/if_vlan/t_vlan.sh: revision 1.26
tests/net/if_vlan/t_vlan.sh: revision 1.27

tests: dedup t_vlan.sh like others (NFC)

tests, vlan: add a test case for link state sync
A vlan interface synchronizes its link state with its parent's one.
 1.24.2.1  03-Nov-2023  martin Pull up following revision(s) (requested by yamaguchi in ticket #455):
sys/dev/pci/ixgbe/ixgbe.c: revision 1.347
sys/net/if_l2tp.c: revision 1.49
tests/net/if_vlan/t_vlan.sh: revision 1.25
sys/net/if_vlan.c: revision 1.171
sys/net/if_ethersubr.c: revision 1.326
sys/dev/pci/ixgbe/ixv.c: revision 1.194
Use ether_bpf_mtap only when the device supports vlan harware tagging
The function is bpf_mtap() for ethernet devices and *currently*
it is just handling VLAN tag stripped by the hardware.
l2tp(4): use ether_ifattach() to initialize ethercom
Support vlan(4) over l2tp(4)
Added the test for vlan over l2tp
 1.25.2.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed