History log of /freebsd/tests/sys/net/Makefile (Results 1 – 25 of 27)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# a1174b3b 21-Aug-2025 Kyle Evans <kevans@FreeBSD.org>

tun(4)/tap(4): allow devices to be configured as transient

Transient tunnel devices are removed immediately after last close, so
that an application that's created the tunnel could eliminate the nee

tun(4)/tap(4): allow devices to be configured as transient

Transient tunnel devices are removed immediately after last close, so
that an application that's created the tunnel could eliminate the need
to manually destroy the tunnel whose lifetime it's already managing.

Reviewed by: zlei
Differential Revision: https://reviews.freebsd.org/D44200

show more ...


# bc986717 10-Aug-2025 Lexi Winter <ivy@FreeBSD.org>

tests/sys/net: if_bridge_test does not require python

This was originally added for if_bridge_test:span which uses scapy, but
that requirement is now annotated in the test itself.

Remove the requir

tests/sys/net: if_bridge_test does not require python

This was originally added for if_bridge_test:span which uses scapy, but
that requirement is now annotated in the test itself.

Remove the requirement so the remaining bridge tests can run without
Python installed.

show more ...


Revision tags: release/13.5.0-p3, release/14.2.0-p5, release/14.3.0-p2, release/14.3.0-p1, release/14.2.0-p4, release/13.5.0-p2, release/14.3.0
# da9f1571 04-Jun-2025 Lexi Winter <ivy@FreeBSD.org>

tests/sys/net: run if_bridge_test in a jail

Many of the tests in if_bridge_test create new epair interfaces and
then add them to a bridge.

If devd is running, devd will attempt to configure these i

tests/sys/net: run if_bridge_test in a jail

Many of the tests in if_bridge_test create new epair interfaces and
then add them to a bridge.

If devd is running, devd will attempt to configure these interfaces
based on the host's /etc/rc.conf, and may enable IPv6 on the new
interface (for example, if ipv6_activate_all_interfaces is enabled),
causing an IPv6 link-local address to be assigned to the epair. This
causes the test to fail if net.link.bridge.member_ifaddrs is set to 0,
which is the default.

Fix this by running the tests in a jail, so there is no devd to
interfere with our new interfaces.

Reviewed by: kevans, kp, des
Approved by: des (mentor), kevans (mentor)
Differential Revision: https://reviews.freebsd.org/D50476

show more ...


Revision tags: release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3, release/13.5.0
# dd49816b 26-Feb-2025 Kristof Provost <kp@FreeBSD.org>

bpf: avoid panic on multiple readers

If we have multiple simultaneous readers on a single /dev/bpf fd it's possible
for the assertion after the bpf_uiomove() in bpfread() to fail.

Note that the bpf

bpf: avoid panic on multiple readers

If we have multiple simultaneous readers on a single /dev/bpf fd it's possible
for the assertion after the bpf_uiomove() in bpfread() to fail.

Note that the bpf_uiomove() is done outside of the BPFD_LOCK, because uiomove
may sleep. As a result it's possible for another thread to have already
reclaimed toe bd_hbuf, thus causing us to fail the assertion.
Even without INVARIANTS this may provoke panics.

That results (with INVARIANTS) in a panic such as:

login: panic: bpfread: lost bd_hbuf
cpuid = 13
time = 1740567635
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe003972db10
vpanic() at vpanic+0x136/frame 0xfffffe003972dc40
panic() at panic+0x43/frame 0xfffffe003972dca0
bpfread() at bpfread+0x2e8/frame 0xfffffe003972dce0
devfs_read_f() at devfs_read_f+0xe4/frame 0xfffffe003972dd40
dofileread() at dofileread+0x80/frame 0xfffffe003972dd90
sys_read() at sys_read+0xb7/frame 0xfffffe003972de00
amd64_syscall() at amd64_syscall+0x15a/frame 0xfffffe003972df30
fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe003972df30
--- syscall (3, FreeBSD ELF64, read), rip = 0x302787166afa, rsp = 0x302782638a78, rbp = 0x302782638aa0 ---

Also add a test case replicating the known trigger for this panic.

Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D49135

show more ...


Revision tags: release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4, release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3, release/14.2.0, release/13.4.0, release/14.1.0
# c0f13232 20-Apr-2024 Mark Johnston <markj@FreeBSD.org>

wg tests: Add a simple regression test case for netmap support

MFC after: 1 month
Sponsored by: Klara, Inc.
Sponsored by: Zenarmor


Revision tags: release/13.3.0, release/14.0.0
# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/


# d116b843 10-Apr-2023 Kristof Provost <kp@FreeBSD.org>

epair tests: test PCP tagged packets

PR: 270736
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D39483


Revision tags: release/13.2.0
# 8fb97396 16-Dec-2022 John Baldwin <jhb@FreeBSD.org>

wg: Re-add basic if_wg(4) tests.

These were originally added in commit
74ae3f3e33b810248da19004c58b3581cd367843 but have been updated to use
wg(8).

Reviewed by: kevans, markj
Sponsored by: The Free

wg: Re-add basic if_wg(4) tests.

These were originally added in commit
74ae3f3e33b810248da19004c58b3581cd367843 but have been updated to use
wg(8).

Reviewed by: kevans, markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D37400

show more ...


Revision tags: release/12.4.0, release/13.1.0
# 067acae2 25-Apr-2022 Kristof Provost <kp@FreeBSD.org>

if_ovpn tests: basic test case

Set up an OpenVPN tunnel between two jails, send traffic through them to
confirm basic function.

Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Re

if_ovpn tests: basic test case

Set up an OpenVPN tunnel between two jails, send traffic through them to
confirm basic function.

Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D35067

show more ...


Revision tags: release/12.3.0
# eb5e0755 05-Nov-2021 Kristof Provost <kp@FreeBSD.org>

net tests: basic if_stf test

Test the 6to4 code.

MFC after: 3 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D32850


# 6e0755b3 04-Nov-2021 Kristof Provost <kp@FreeBSD.org>

net tests: basic if_gif(4) test case

MFC after: 3 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D32836


# 3e87f800 22-Jul-2021 Kristof Provost <kp@FreeBSD.org>

net tests: basic test case for bpf(4)'s ability to set vlan pcp

Use dhclient with its 'vlan-pcp' option to set a VLAN PCP value and
verify that it actually gets set.

MFC after: 1 week
Sponsored by:

net tests: basic test case for bpf(4)'s ability to set vlan pcp

Use dhclient with its 'vlan-pcp' option to set a VLAN PCP value and
verify that it actually gets set.

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D31276

show more ...


# 4ae3a97e 15-Apr-2021 Kristof Provost <kp@FreeBSD.org>

bridge tests: Test STP config BPDU validation

PR: 254924
Reviewed by: donner
Differential Revision: https://reviews.freebsd.org/D29783


Revision tags: release/13.0.0, release/12.2.0
# 7cc42f6d 01-Oct-2020 Kyle Evans <kevans@FreeBSD.org>

Do a sweep and remove most WARNS=6 settings

Repeating the default WARNS here makes it slightly more difficult to
experiment with default WARNS changes, e.g. if we did something absolutely
bananas an

Do a sweep and remove most WARNS=6 settings

Repeating the default WARNS here makes it slightly more difficult to
experiment with default WARNS changes, e.g. if we did something absolutely
bananas and introduced a WARNS=7 and wanted to try lifting the default to
that.

Drop most of them; there is one in the blake2 kernel module, but I suspect
it should be dropped -- the default WARNS in the rest of the build doesn't
currently apply to kernel modules, and I haven't put too much thought into
whether it makes sense to make it so.

show more ...


Revision tags: release/11.4.0
# f464bd04 19-May-2020 Edward Tomasz Napierala <trasz@FreeBSD.org>

Make sys.net.if_bridge_test depend on python; sys.net.if_bridge_test.span
requires it.

MFC after: 2 weeks
Sponsored by: DARPA


# e43d33d2 05-Mar-2020 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r358466 through r358677.


# 8ccf5032 03-Mar-2020 Olivier Cochard <olivier@FreeBSD.org>

Skip if_epair regression test if module doesn't exist

Approved by: kp
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D23876


# b33a8b38 16-Feb-2020 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r357966 through r357999.


# 095aabf7 16-Feb-2020 Kristof Provost <kp@FreeBSD.org>

bridge: Basic test case

Very basic bridge test: Set up two jails and test that they can pass IPv4
traffic over the bridge.

Reviewed by: melifaro, philip
Sponsored by: The FreeBSD Foundation
Differe

bridge: Basic test case

Very basic bridge test: Set up two jails and test that they can pass IPv4
traffic over the bridge.

Reviewed by: melifaro, philip
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D23697

show more ...


# bb1d0df5 29-Jan-2020 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r357179 through r357269.


# 5458a63b 28-Jan-2020 Kristof Provost <kp@FreeBSD.org>

tests: Test for an epair panic

if_epair abused the ifr_data field to insert its second interface in
IFC_IFLIST. If userspace provides a value for ifr_data it would get
dereferenced by the kernel lea

tests: Test for an epair panic

if_epair abused the ifr_data field to insert its second interface in
IFC_IFLIST. If userspace provides a value for ifr_data it would get
dereferenced by the kernel leading to a panic.

Reported by: Ilja Van Sprundel <ivansprundel@ioactive.com>
MFC after: 3 days

show more ...


# 775dc861 28-Dec-2019 Alexander V. Chernikov <melifaro@FreeBSD.org>

Add userland tests for route table/lltable rtsock operations.

MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D22860


Revision tags: release/12.1.0
# fcd69db2 15-Oct-2019 Kristof Provost <kp@FreeBSD.org>

tests: basic VLAN test

Set up two jails connected by an epair. Create VLAN interfaces in both
jails and check connectivity.

This is a very basic test, but exposed panics during the network stack
ep

tests: basic VLAN test

Set up two jails connected by an epair. Create VLAN interfaces in both
jails and check connectivity.

This is a very basic test, but exposed panics during the network stack
epoch work, so this is worth testing.

show more ...


Revision tags: release/11.3.0
# 2aaf9152 18-Mar-2019 Alan Somers <asomers@FreeBSD.org>

MFHead@r345275


# ff511f1f 11-Mar-2019 Enji Cooper <ngie@FreeBSD.org>

MFhead@r344996


12