|
Revision tags: release/14.4.0-p5, release/14.3.0-p14, release/15.0.0-p9 |
|
| #
eeffed5a |
| 19-May-2026 |
Mark Johnston <markj@FreeBSD.org> |
tests/if_carp: Run all tests with execenv=jail
Otherwise failures can occur when running tests in parallel since some tests reuse jail names.
MFC after: 1 week
|
|
Revision tags: release/14.4.0-p4, release/14.3.0-p13, release/13.5.0-p14, release/15.0.0-p8, release/14.4.0-p3, release/14.3.0-p12, release/13.5.0-p13, release/15.0.0-p7, release/13.5.0-p12, release/14.3.0-p11, release/14.4.0-p2, release/15.0.0-p6 |
|
| #
09e702ad |
| 30-Mar-2026 |
Mark Johnston <markj@FreeBSD.org> |
tests: Add some simple regression tests for ip_mroute
These use atf_python to create a number of hosts linked to a router. The router runs pimd (for IPv4) or ip6_mrouter (simplistic IPv6 multicast r
tests: Add some simple regression tests for ip_mroute
These use atf_python to create a number of hosts linked to a router. The router runs pimd (for IPv4) or ip6_mrouter (simplistic IPv6 multicast router that I wrote since I couldn't find one in the ports tree). The vnet_host*_handler() methods are invoked in different VNET jails connected to the router; they register the connected epair with a multicast group and verify that they can send messages to each other.
The tests are synchronized by sending messages over a unix domain socket. The flow is something like: 1) test startup_method() is called, the unix socket is created, 2) the superclass creates jails and links them together using the declared topology, 3) we wait for all child jails to start up and send a message on the unix socket indicating that they are ready 4) we start the routing daemon in the main jail, 5) the test actually starts; starttest() kicks off the vnet_host*_handlers(), which mostly just verify that they can send messages to each other using multicast packets 6) once they finish running, they signal their completion, and waittest() returns once they're all done
There are two tests, repeated for v4 and v6. One just exchanges packets between two hosts, and the other has four hosts divided across two FIBs.
MFC after: 2 weeks Sponsored by: Stormshield Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D55244
show more ...
|
|
Revision tags: release/13.5.0-p11, release/14.3.0-p10, release/14.4.0-p1, release/15.0.0-p5 |
|
| #
cd05c880 |
| 24-Mar-2026 |
Gleb Smirnoff <glebius@FreeBSD.org> |
tests/netinet: add test for getsockname() on a disconnected TCP socket
Stack it into existing file that exercises an other corner case of our TCP and rename the file to a more generic name.
|
| #
c1481c9f |
| 17-Mar-2026 |
Gleb Smirnoff <glebius@FreeBSD.org> |
tests/netinet: provide test for raw_ip.c:rip_input()
The test creates differently bound SOCK_RAW sockets and sends different probe packets. There is expected results matrix that every probe is chec
tests/netinet: provide test for raw_ip.c:rip_input()
The test creates differently bound SOCK_RAW sockets and sends different probe packets. There is expected results matrix that every probe is checked against.
show more ...
|
|
Revision tags: release/14.4.0, release/13.5.0-p10, release/14.3.0-p9, release/15.0.0-p4, release/15.0.0-p3, release/13.5.0-p9, release/15.0.0-p2, release/14.3.0-p8, release/15.0.0-p1, release/13.5.0-p8, release/14.3.0-p7, release/15.0.0, release/14.3.0-p6, release/13.5.0-p7 |
|
| #
b3b279b8 |
| 09-Nov-2025 |
Mark Johnston <markj@FreeBSD.org> |
multicast tests: Run in VNET jails
The tests themselves create identically named jails, resulting in spurious failures when the tests are run in parallel.
MFC after: 1 week
|
|
Revision tags: release/13.5.0-p6, release/14.3.0-p5 |
|
| #
be1ad90e |
| 13-Oct-2025 |
Nick Banks <nickbanks@netflix.com> |
tcp: Initial ktest for HPTS
Reviewed by: rrs, tuexen Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D52979
|
|
Revision tags: release/13.5.0-p5, release/14.2.0-p7, release/14.3.0-p4 |
|
| #
d0c8a0b3 |
| 30-Sep-2025 |
Gleb Smirnoff <glebius@FreeBSD.org> |
tests/netinet: extend IPv4 multicast testing framework
Provide a helper program multicast-receive.c that joins arbitrary group on arbitrary specified interface and receives a single datagram and pri
tests/netinet: extend IPv4 multicast testing framework
Provide a helper program multicast-receive.c that joins arbitrary group on arbitrary specified interface and receives a single datagram and prints it out.
In multicast.sh provide a template with two jails connected by two interface pairs, so that we can check sends/receives in presence of multiple interfaces.
Compose a few basic tests to check legacy and new IP_ADD_MEMBERSHIP and MCAST_JOIN_GROUP.
show more ...
|
| #
36f2eda2 |
| 30-Sep-2025 |
Gleb Smirnoff <glebius@FreeBSD.org> |
tests/netinet: rename and extend sendto-IP_MULTICAST_IF.c
Rename this test helper app to multicast-send.c. Extend it to send from/to arbitrary addresses and arbitrary payload so that it can be used
tests/netinet: rename and extend sendto-IP_MULTICAST_IF.c
Rename this test helper app to multicast-send.c. Extend it to send from/to arbitrary addresses and arbitrary payload so that it can be used in more test scenarios.
show more ...
|
|
Revision tags: release/14.3.0-p3, release/14.2.0-p6, release/13.5.0-p4, 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, release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3 |
|
| #
0849f163 |
| 22-Mar-2025 |
Gleb Smirnoff <glebius@FreeBSD.org> |
tests/netinet: add test for IP_MULTICAST_IF
|
|
Revision tags: release/13.5.0 |
|
| #
ad77d317 |
| 22-Feb-2025 |
Gleb Smirnoff <glebius@FreeBSD.org> |
tests/netinet: add few tests for sending a broadcast packet
1) Set SO_BROADCAST and send to INADDR_BROADCAST. 2) Set SO_BROADCAST, set IP_ONESBCAST and cycle through broadcast capable interfaces
tests/netinet: add few tests for sending a broadcast packet
1) Set SO_BROADCAST and send to INADDR_BROADCAST. 2) Set SO_BROADCAST, set IP_ONESBCAST and cycle through broadcast capable interfaces sending a datagram on each. 3) Set SO_BROADCAST and send to local broadcast address.
For each test we bind a second socket to check whether the broadcast is actually received.
Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D49040
show more ...
|
|
Revision tags: release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4 |
|
| #
4f274f84 |
| 18-Feb-2025 |
Gleb Smirnoff <glebius@FreeBSD.org> |
tests/netinet: add few tests for unconnected UDP socket
1) Test that getsockname() on a socket that experienced a sendto(2) returns allocated port. 2) Same as 1), but jailed. Make sure IP addres
tests/netinet: add few tests for unconnected UDP socket
1) Test that getsockname() on a socket that experienced a sendto(2) returns allocated port. 2) Same as 1), but jailed. Make sure IP address was also selected. 3) Test that IP_SENDSRCADDR/IP_RECVDSTADDR work. 4) Regression test for bug 274009.
show more ...
|
| #
7034563f |
| 06-Feb-2025 |
Mark Johnston <markj@FreeBSD.org> |
tests: Add some FIB multibind test cases
Reviewed by: glebius MFC after: 2 weeks Sponsored by: Klara, Inc. Sponsored by: Stormshield Differential Revision: https://reviews.freebsd.org/D48665
|
|
Revision tags: release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3 |
|
| #
7cbb6b6e |
| 23-Jan-2025 |
Mark Johnston <markj@FreeBSD.org> |
inpcb: Close some SO_REUSEPORT_LB races, part 2
Suppose a thread is adds a socket to an existing TCP lbgroup that is actively accepting connections. It has to do the following operations: 1. set SO
inpcb: Close some SO_REUSEPORT_LB races, part 2
Suppose a thread is adds a socket to an existing TCP lbgroup that is actively accepting connections. It has to do the following operations: 1. set SO_REUSEPORT_LB on the socket 2. bind() the socket to the shared address/port 3. call listen()
Step 2 makes the inpcb visible to incoming connection requests. However, at this point the inpcb cannot accept new connections. If in_pcblookup() matches it, the remote end will see ECONNREFUSED even when other listening sockets are present in the lbgroup. This means that dynamically adding inpcbs to an lbgroup (e.g., by starting up new workers) can trigger spurious connection failures for no good reason. (A similar problem exists when removing inpcbs from an lbgroup, but that is harder to fix and is not addressed by this patch; see the review for a bit more commentary.)
Fix this by augmenting each lbgroup with a linked list of inpcbs that are pending a listen() call. When adding an inpcb to an lbgroup, keep the inpcb on this list if listen() hasn't been called, so it is not yet visible to the lookup path. Then, add a new in_pcblisten() routine which makes the inpcb visible within the lbgroup now that it's safe to let it handle new connections.
Add a regression test which verifies that we don't get spurious connection errors while adding sockets to an LB group.
Reviewed by: glebius MFC after: 1 month Sponsored by: Klara, Inc. Sponsored by: Stormshield Differential Revision: https://reviews.freebsd.org/D48544
show more ...
|
| #
ff7e00eb |
| 18-Dec-2024 |
Gleb Smirnoff <glebius@FreeBSD.org> |
tests: remove reference to renamed test
Fixes: ae5c3dfd3e75bb287984947359d4f958aea505ec
|
|
Revision tags: release/14.2.0 |
|
| #
a079f2b5 |
| 21-Nov-2024 |
Mark Johnston <markj@FreeBSD.org> |
fibs_test: Run in a jail
These tests assume exclusive use of one or more FIBs and so can't be run in parallel. Running them in a VNET jail sidesteps this problem.
MFC after: 1 week Sponsored by: K
fibs_test: Run in a jail
These tests assume exclusive use of one or more FIBs and so can't be run in parallel. Running them in a VNET jail sidesteps this problem.
MFC after: 1 week Sponsored by: Klara, Inc. Sponsored by: Stormshield
show more ...
|
|
Revision tags: release/13.4.0 |
|
| #
b103fc49 |
| 09-Sep-2024 |
Mark Johnston <markj@FreeBSD.org> |
netinet tests: Make some tests more reliable when run in parallel
Many of the modified tests add epair interfaces to the host, though most of the tests themselves run in a VNET jail. scapy in parti
netinet tests: Make some tests more reliable when run in parallel
Many of the modified tests add epair interfaces to the host, though most of the tests themselves run in a VNET jail. scapy in particular becomes unhappy when the list of interfaces changes as it is running, so, to improve reliability of parallel test runs, isolate tests which add epairs to the host.
Also serialize arp tests, as they examine the dmesg as part of the test.
The list of modified tests is not exhaustive, it was determined by running the test suite with parallelization enabled and looking at failures. It may be easier to just automatically enable VNET jailing of all netinet tests, but let's be more particular for now.
Reviewed by: kp MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D46606
show more ...
|
| #
e9ac4169 |
| 15-Jul-2024 |
Warner Losh <imp@FreeBSD.org> |
Remove residual blank line at start of Makefile
This is a residual of the $FreeBSD$ removal.
MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
|
|
Revision tags: release/14.1.0 |
|
| #
8d3d9ca8 |
| 23-Mar-2024 |
Gleb Smirnoff <glebius@FreeBSD.org> |
tests/netinet: add UDP socket I/O tests
Start a file that would collect tests for I/O functionality of a UDP socket, targeted on how a socket interacts with userland rather than with wire side of th
tests/netinet: add UDP socket I/O tests
Start a file that would collect tests for I/O functionality of a UDP socket, targeted on how a socket interacts with userland rather than with wire side of the protocol.
First version tests that MSG_TRUNC and MSG_PEEK are working correctly.
show more ...
|
|
Revision tags: release/13.3.0 |
|
| #
861274c9 |
| 01-Feb-2024 |
Gleb Smirnoff <glebius@FreeBSD.org> |
tests/netinet: add a demo of TCP implied connect
The TCP implied connect is an artifact left after T/TCP. To my surprise it still works, hence the existence of this test. Please read this email fi
tests/netinet: add a demo of TCP implied connect
The TCP implied connect is an artifact left after T/TCP. To my surprise it still works, hence the existence of this test. Please read this email first:
https://lists.freebsd.org/pipermail/freebsd-net/2010-August/026311.html
An interesting fact that this test takes 220 - 240 milliseconds to execute on my Threadripper PRO. Flipping the '#if 0' to '#if 1' in the test, thus bringing it back to normal connect(2), would speed the test up a hundred times and I guess all this time is fork+exec of the test.
show more ...
|
| #
c2e0b604 |
| 19-Dec-2023 |
Kristof Provost <kp@FreeBSD.org> |
netinet tests: test that we send IGMP join/leave packets as expected
Sponsored by: Rubicon Communications, LLC ("Netgate")
|
|
Revision tags: release/14.0.0 |
|
| #
ae5c3dfd |
| 17-Oct-2023 |
Mark Johnston <markj@FreeBSD.org> |
netinet tests: Add error handling tests for UDP with v4-mapped sockets
This provides a regression test for commit abca3ae7734f.
Add it to the existing v4-mapped address test file, and rename accord
netinet tests: Add error handling tests for UDP with v4-mapped sockets
This provides a regression test for commit abca3ae7734f.
Add it to the existing v4-mapped address test file, and rename accordingly.
Reviewed by: tuexen, karels, rrs MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39216
show more ...
|
| #
d0b2dbfa |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line sh pattern
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
|
|
Revision tags: release/13.2.0 |
|
| #
5e2e3615 |
| 06-Apr-2023 |
Kristof Provost <kp@FreeBSD.org> |
netinet tests: test carp source MAC address
Ensure that (multicast) CARP packets are sent with the expected source MAC address.
Reviewed by: melifaro Sponsored by: Rubicon Communications, LLC ("Net
netinet tests: test carp source MAC address
Ensure that (multicast) CARP packets are sent with the expected source MAC address.
Reviewed by: melifaro Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D39454
show more ...
|
| #
78ec1136 |
| 07-Dec-2022 |
Gleb Smirnoff <glebius@FreeBSD.org> |
tests/netinet: mark more tests that require python
|
|
Revision tags: release/12.4.0 |
|
| #
9e0aaedd |
| 28-Oct-2022 |
John Baldwin <jhb@FreeBSD.org> |
Split netinet shell tests into one per line.
This makes diffs when adding or removing tests easier to read.
While here, sort the list of tests.
Reviewed by: kevans, melifaro, asomers, markj, emast
Split netinet shell tests into one per line.
This makes diffs when adding or removing tests easier to read.
While here, sort the list of tests.
Reviewed by: kevans, melifaro, asomers, markj, emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D36908
show more ...
|