You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simplify test configuration by using supplied addresses from --addr flag
for all connection tests, eliminating gateway detection complexity.
Key improvements:
1. Use supplied addresses for connection tests
- tcp_event.ti_2: Connect to localhost (127.0.0.1/::1) port 8889
- udp_connect.ti_2: Connect to server_addr from --addr flag
- Simpler configuration: only one remote address parameter (-r) needed
2. Fix bogus_addr port handling
- Set bogus_addr port to 8888 (was 0, which is invalid for connect)
- Fixes udp_connect.ti_3 failure (errno 9 - EBADF)
3. Improve semantic correctness
- udp_connect.ti_3: Use remote_unreachable_addr instead of bogus_addr
to match test description ("connect to unreachable ip")
Changes:
- tcp_event.ti_2: Use localhost with port 8889 for connection refusal test
- udp_connect.ti_2: Use server_addr instead of gateway address
- udp_connect.ti_3: Use remote_unreachable_addr instead of bogus_addr
- Fix bogus_addr port initialization: 0 → 8888
- Simplify main.cc configuration logic
Signed-off-by: Tomer Cabouly <[email protected]>
0 commit comments