The NetBSD Project

CVS log for src/tests/net/if_vlan/t_vlan.sh

[BACK] Up to [cvs.NetBSD.org] / src / tests / net / if_vlan

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.24.2.1 / (download) - annotate - [select for diffs], Fri Nov 3 10:10:49 2023 UTC (5 months, 1 week ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Changes since 1.24: +136 -1 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

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

Revision 1.25 / (download) - annotate - [select for diffs], Thu Nov 2 09:50:50 2023 UTC (5 months, 1 week ago) by yamaguchi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.24: +136 -1 lines
Diff to previous 1.24 (colored)

Added the test for vlan over l2tp

Revision 1.24 / (download) - annotate - [select for diffs], Thu Aug 19 03:27:05 2021 UTC (2 years, 7 months ago) by yamaguchi
Branch: MAIN
CVS Tags: netbsd-10-base
Branch point for: netbsd-10
Changes since 1.23: +8 -7 lines
Diff to previous 1.23 (colored)

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

Revision 1.23 / (download) - annotate - [select for diffs], Wed Jul 14 08:51:51 2021 UTC (2 years, 9 months ago) by yamaguchi
Branch: MAIN
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored)

vlan: Added missing $HIJACKING before brconfig

Revision 1.22 / (download) - annotate - [select for diffs], Wed Jul 14 08:50:24 2021 UTC (2 years, 9 months ago) by yamaguchi
Branch: MAIN
Changes since 1.21: +22 -4 lines
Diff to previous 1.21 (colored)

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

Revision 1.21 / (download) - annotate - [select for diffs], Wed Jul 14 06:35:59 2021 UTC (2 years, 9 months ago) by yamaguchi
Branch: MAIN
Changes since 1.20: +22 -1 lines
Diff to previous 1.20 (colored)

Added a test about clearing IFF_PROMISC at vlan_unconfig

This test is related to PR/49196

Revision 1.20 / (download) - annotate - [select for diffs], Fri Jul 9 05:54:11 2021 UTC (2 years, 9 months ago) by yamaguchi
Branch: MAIN
Changes since 1.19: +100 -1 lines
Diff to previous 1.19 (colored)

added tests for IFF_PROMISC of vlan(4)

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jul 6 01:18:22 2021 UTC (2 years, 9 months ago) by yamaguchi
Branch: MAIN
Changes since 1.18: +5 -1 lines
Diff to previous 1.18 (colored)

vlan: added checks of linkstate

Revision 1.18 / (download) - annotate - [select for diffs], Fri Jul 2 04:38:10 2021 UTC (2 years, 9 months ago) by yamaguchi
Branch: MAIN
Changes since 1.17: +42 -9 lines
Diff to previous 1.17 (colored)

Added tests for changing a MTU when the vlan(4) is added to bridge(4)

The tests is for PR kern/56292

Revision 1.11.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:31 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.11.2.2: +131 -2 lines
Diff to previous 1.11.2.2 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.11.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:09:11 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.11.2.1: +3 -3 lines
Diff to previous 1.11.2.1 (colored) to branchpoint 1.11 (colored)

Merge changes from current as of 20200406

Revision 1.17 / (download) - annotate - [select for diffs], Sun Mar 8 09:05:33 2020 UTC (4 years, 1 month ago) by nisimura
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)


address to ATF t_vlan failure. adapt ifmcstat(8) output format change.

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Wed Nov 13 12:50:30 2019 UTC (4 years, 5 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.15: +132 -3 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

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

Revision 1.16 / (download) - annotate - [select for diffs], Mon Nov 11 02:40:48 2019 UTC (4 years, 5 months ago) by yamaguchi
Branch: MAIN
CVS Tags: phil-wifi-20191119, is-mlppp-base, is-mlppp
Changes since 1.15: +132 -3 lines
Diff to previous 1.15 (colored)

atf: add test cases for MTU that is increased on SIOCSETVLAN

From t-kusaba@IIJ, thanks

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:10:10 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.11: +165 -151 lines
Diff to previous 1.11 (colored)

Sync with HEAD

Revision 1.8.2.3 / (download) - annotate - [select for diffs], Wed Dec 26 14:02:10 2018 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.8.2.2: +161 -150 lines
Diff to previous 1.8.2.2 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.15 / (download) - annotate - [select for diffs], Tue Dec 11 03:47:51 2018 UTC (5 years, 4 months ago) by ozaki-r
Branch: MAIN
CVS Tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, netbsd-9-base
Branch point for: netbsd-9
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

tests: add missing $af

Revision 1.14 / (download) - annotate - [select for diffs], Fri Dec 7 09:29:01 2018 UTC (5 years, 4 months ago) by ozaki-r
Branch: MAIN
Changes since 1.13: +9 -8 lines
Diff to previous 1.13 (colored)

tests: check error messages strictly

Revision 1.13 / (download) - annotate - [select for diffs], Fri Dec 7 09:28:31 2018 UTC (5 years, 4 months ago) by ozaki-r
Branch: MAIN
Changes since 1.12: +152 -142 lines
Diff to previous 1.12 (colored)

tests: reduce repeated phrases... (NFC)

Revision 1.8.2.2 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:53 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.8.2.1: +4 -1 lines
Diff to previous 1.8.2.1 (colored) to branchpoint 1.8 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.12 / (download) - annotate - [select for diffs], Wed Nov 14 05:07:48 2018 UTC (5 years, 5 months ago) by knakahara
Branch: MAIN
CVS Tags: pgoyette-compat-1126
Changes since 1.11: +4 -1 lines
Diff to previous 1.11 (colored)

let ATF detect a bug fixed by if_vla.c:r1.132.

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Mon Jun 25 07:26:09 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.8: +200 -1 lines
Diff to previous 1.8 (colored)

Sync with HEAD

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jun 14 08:38:24 2018 UTC (5 years, 10 months ago) by yamaguchi
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625
Branch point for: phil-wifi
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Update the error message in t_vlan (ENXIO => EINVAL)

ok ozaki-r@

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jun 14 08:22:52 2018 UTC (5 years, 10 months ago) by yamaguchi
Branch: MAIN
Changes since 1.9: +124 -1 lines
Diff to previous 1.9 (colored)

Add test cases for multicast address handling of vlan(4)

ok ozaki-r@

Revision 1.1.8.3 / (download) - annotate - [select for diffs], Tue Jun 12 16:34:04 2018 UTC (5 years, 10 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2
Changes since 1.1.8.2: +77 -1 lines
Diff to previous 1.1.8.2 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

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.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jun 12 04:21:22 2018 UTC (5 years, 10 months ago) by ozaki-r
Branch: MAIN
Changes since 1.8: +77 -1 lines
Diff to previous 1.8 (colored)

Add tests of vlan with bridge

The tests trigger a panic reported in PR kern/53357.

Revision 1.1.8.2 / (download) - annotate - [select for diffs], Mon Feb 26 00:41:14 2018 UTC (6 years, 1 month ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-0-RC1
Changes since 1.1.8.1: +4 -1 lines
Diff to previous 1.1.8.1 (colored) to branchpoint 1.1 (colored)

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

Revision 1.8 / (download) - annotate - [select for diffs], Thu Feb 1 05:22:02 2018 UTC (6 years, 2 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.7: +4 -1 lines
Diff to previous 1.7 (colored)

Commonalize and add tests of creating/destroying interfaces

Revision 1.7 / (download) - annotate - [select for diffs], Thu Nov 23 04:59:49 2017 UTC (6 years, 4 months ago) by kre
Branch: MAIN
Changes since 1.6: +16 -3 lines
Diff to previous 1.6 (colored)

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...)

Revision 1.6 / (download) - annotate - [select for diffs], Thu Nov 23 04:12:36 2017 UTC (6 years, 4 months ago) by kre
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

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?)

Revision 1.1.8.1 / (download) - annotate - [select for diffs], Wed Nov 22 16:45:35 2017 UTC (6 years, 4 months ago) by martin
Branch: netbsd-8
Changes since 1.1: +427 -19 lines
Diff to previous 1.1 (colored)

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.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Nov 16 06:31:00 2017 UTC (6 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.4: +8 -2 lines
Diff to previous 1.4 (colored)

 Add test case of vlan(4)'s re-configure without destroy
(see also if_vlan.c rev. 1.104). Written by s-yamaguchi@iij.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Oct 11 08:10:53 2017 UTC (6 years, 6 months ago) by msaitoh
Branch: MAIN
Changes since 1.3: +7 -1 lines
Diff to previous 1.3 (colored)

 Add a test case for duplicated VLAN ID.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Aug 9 06:19:56 2017 UTC (6 years, 8 months ago) by knakahara
Branch: MAIN
Changes since 1.2: +15 -1 lines
Diff to previous 1.2 (colored)

Add counter check to vlan(4) ATF. Implemented by s-yamaguchi@IIJ, thanks.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jun 14 02:32:29 2017 UTC (6 years, 10 months ago) by ozaki-r
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646
Changes since 1.1: +401 -19 lines
Diff to previous 1.1 (colored)

Add test cases for vlan(4)

From s-yamaguchi@IIJ

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:56 2017 UTC (7 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.1.2.1: +115 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.1.2.1, Sat Nov 26 03:19:49 2016 UTC (7 years, 4 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.1: +0 -115 lines
FILE REMOVED

file t_vlan.sh was added on branch pgoyette-localcount on 2017-01-07 08:56:56 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Sat Nov 26 03:19:49 2016 UTC (7 years, 4 months ago) by ozaki-r
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: pgoyette-localcount, netbsd-8

Add basic tests for vlan(4)

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.




CVSweb <webmaster@jp.NetBSD.org>