freebsd-src/tests/sys/net/routing
Alexander V. Chernikov 42904794b8 rtsock: fix socket closure.
Currently `close(2)` erroneously return `EOPNOTSUPP` for `PF_ROUTE` sockets.
It happened after making rtsock socket implementation self-contained (
36b10ac2cd ). Rtsock code marks socket as connected in `rts_attach()`.
`soclose()` tries to disconnect such socket using `.pr_disconnect` callback.
Rtsock does not implement this callback, resulting in the default method being
substituted. This default method returns `ENOTSUPP`, failing `soclose()` logic.

This diff restores the previous behaviour by adding custom `pr_disconnect()`
returning `ENOTCONN`.

Reviewed by:	glebius
Differential Revision: https://reviews.freebsd.org/D38059
2023-01-16 10:49:45 +00:00
..
generic_cleanup.sh Switch rtsock tests to per-test jails and epair interfaces. 2020-03-29 06:25:57 +00:00
Makefile rtsock: fix socket closure. 2023-01-16 10:49:45 +00:00
params.h Switch rtsock tests to per-test jails and epair interfaces. 2020-03-29 06:25:57 +00:00
rtsock_common.h Fix typo in rtsock_common.h 2021-04-19 20:24:46 +00:00
rtsock_config.h tests/sys/net/routing: remove bandaid against old epair(4) panic 2022-01-26 21:58:43 -08:00
rtsock_print.h Improve debugging output on routing tests failure. 2021-04-24 22:41:27 +00:00
test_routing_l3.py tests: add routing tests for switching between same prefixes 2022-08-07 19:45:25 +00:00
test_rtsock_l3.c Update rtsock_l3 test after 2fe5a79425 2021-04-21 10:58:34 +01:00
test_rtsock_lladdr.c Add routing tests verifying basic RTM_CHANGE functionality. 2020-04-02 20:02:33 +00:00
test_rtsock_multipath.py routing: add multipath pytest tests 2022-06-25 19:29:11 +00:00
test_rtsock_ops.c rtsock: fix socket closure. 2023-01-16 10:49:45 +00:00