curl/tests/http
Stefan Eissing c4f29cc508
ip_quadruple/proxy: make port uint16_t
Make `port` member in these struct of type `uint16_t`.

add `uint8_t transport` to `struct ip_quadruple

Define TRNSPRT_NONE as 0. By assigning a valid transport only on a
successful connection, it is clear when the ip_quadruple members are
valid. Also, for transports not involving ports, the getinfos for
`CURLINFO_PRIMARY_PORT` and `CURLINFO_LOCAL_PORT` will now always return
-1.

Make all `transport` members and parameters of type `uint8_t`.

Document the return value of `CURLINFO_LOCAL_PORT` and
`CURLINFO_PRIMARY_PORT` in this regard. Add tests that writeout stats
report ports correctly.

Closes #19708
2025-11-27 14:32:01 +01:00
..
testenv lib: timer stats improvements 2025-11-25 16:18:59 +01:00
.gitignore tidy-up: mostly whitespace nits 2023-08-31 23:02:10 +00:00
CMakeLists.txt pytest: use dante-server in CI 2025-07-29 15:02:30 +02:00
config.ini.in pytest: use dante-server in CI 2025-07-29 15:02:30 +02:00
conftest.py pytest: adapt for runs with openssl-1.1.1 2025-06-05 13:52:29 +02:00
Makefile.am tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
requirements.txt GHA: bump the pip-dependencies group across 2 directories with 3 updates 2025-11-02 17:10:39 +01:00
scorecard.py badwords: fix issues found in tests 2025-11-17 13:30:35 +01:00
test_01_basic.py ip_quadruple/proxy: make port uint16_t 2025-11-27 14:32:01 +01:00
test_02_download.py lib: timer stats improvements 2025-11-25 16:18:59 +01:00
test_03_goaway.py pytest fixes and improvements 2025-11-17 08:02:52 +01:00
test_04_stuttered.py pytest fixes and improvements 2025-11-17 08:02:52 +01:00
test_05_errors.py pytest fixes and improvements 2025-11-17 08:02:52 +01:00
test_06_eyeballs.py pytest: skip specific tests for no-verbose builds 2025-10-02 10:41:46 +02:00
test_07_upload.py ratelimit: redesign 2025-11-24 23:34:05 +01:00
test_08_caddy.py pytest fixes and improvements 2025-11-17 08:02:52 +01:00
test_09_push.py pytest fixes and improvements 2025-11-17 08:02:52 +01:00
test_10_proxy.py badwords: fix issues found in tests 2025-11-17 13:30:35 +01:00
test_11_unix.py ip_quadruple/proxy: make port uint16_t 2025-11-27 14:32:01 +01:00
test_12_reuse.py spelling: 'a' vs 'an' 2025-05-30 11:38:35 +02:00
test_13_proxy_auth.py pytest fixes and improvements 2025-11-17 08:02:52 +01:00
test_14_auth.py pytest fixes and improvements 2025-11-17 08:02:52 +01:00
test_15_tracing.py pytest: skip specific tests for no-verbose builds 2025-10-02 10:41:46 +02:00
test_16_info.py lib: timer stats improvements 2025-11-25 16:18:59 +01:00
test_17_ssl_use.py wolfssl: fix cipher list, skip 5.8.4 regression 2025-11-23 18:05:42 +01:00
test_18_methods.py pytest fixes and improvements 2025-11-17 08:02:52 +01:00
test_19_shutdown.py pytest fixes and improvements 2025-11-17 08:02:52 +01:00
test_20_websockets.py websocket: improve handling of 0-len frames 2025-08-28 11:00:02 +02:00
test_30_vsftpd.py lib: timer stats improvements 2025-11-25 16:18:59 +01:00
test_31_vsftpds.py lib: timer stats improvements 2025-11-25 16:18:59 +01:00
test_32_ftps_vsftpd.py lib: timer stats improvements 2025-11-25 16:18:59 +01:00
test_40_socks.py pytest fixes and improvements 2025-11-17 08:02:52 +01:00