Page MenuHomeFreeBSD

Add regression test for D27164
ClosedPublic

Authored by jtl on Nov 11 2020, 3:43 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 13, 11:21 PM
Unknown Object (File)
Sat, Mar 30, 7:44 PM
Unknown Object (File)
Jan 30 2024, 2:57 AM
Unknown Object (File)
Jan 30 2024, 2:43 AM
Unknown Object (File)
Jan 28 2024, 3:32 PM
Unknown Object (File)
Jan 26 2024, 5:44 AM
Unknown Object (File)
Jan 10 2024, 1:00 PM
Unknown Object (File)
Nov 29 2023, 5:31 AM

Details

Summary

D27164 describes a problem with (and fix for) implicit local port selection as part of the connect() call. This regression test fails for IPv6 without the fix and passes with the fix.

Test Plan

Run the regression test with and without the fix. Verify the test fails without the fix and passes with the fix.

Without the fix:

sys/netinet/tcp_connect_port_test:basic_ipv4  ->  passed  [2.093s]
sys/netinet/tcp_connect_port_test:basic_ipv6  ->  failed: /home/ec2-user/ocafirmware/FreeBSD/tests/sys/netinet/tcp_connect_port_test.c:245: client socket 55535 using the same port as server  [1.972s]

With the fix:

sys/netinet/tcp_connect_port_test:basic_ipv4  ->  passed  [2.109s]
sys/netinet/tcp_connect_port_test:basic_ipv6  ->  passed  [2.486s]

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable