Susant Sahani
288f58c0b4
CI: network - Add test for route hoplimit
2023-08-18 15:52:14 +05:30
Luca Boccassi
f9e653cfb7
Merge pull request #28870 from ssahani/rto-min-network
...
network: Route - allow to set TCP RTO
2023-08-18 09:23:45 +01:00
Susant Sahani
543d2a4d45
CI: network dhcp6 - Add test for custom client identifier
2023-08-17 23:52:33 +05:30
Susant Sahani
1791956e9c
CI: network - Add test for route TCP RTO
2023-08-17 23:49:32 +05:30
Frantisek Sumsal
79f902eb09
Add .pylintrc to globally suppress warnings we don't really care about
...
Also, drop the respective disable directives from existing files.
2023-08-10 18:13:29 +02:00
Yu Watanabe
f2bcd3245a
test-network: add more tests for address properties
2023-07-31 18:15:26 +09:00
Yu Watanabe
d19704cd21
test-network: add testcase for overriding Address.RouteMetric=
...
For issue #25843 .
2023-07-31 02:31:17 +09:00
Yu Watanabe
2ede355908
test-network: add tests for several invalid neighbor settings, and overriding settings
...
This also makes the checks stricter.
2023-07-31 00:40:03 +09:00
Luca Boccassi
fc3fe92bc8
Merge pull request #28508 from yuwata/network-next-dhcp4
...
network: several cleanups and fixes for DHCPv4 client
2023-07-29 12:15:38 +01:00
Susant Sahani
ab2d9e2971
CI: network - Add test for rp_filter
2023-07-28 15:05:12 +05:30
Yu Watanabe
4001653ddb
network/dhcp4: always honor specified gateway address
...
Follow-up for 77451f654a .
Now, gateway for routes to DNS or NTP servers should be correctly picked,
hence it is not necessary to adjust the gateway address in
dhcp4_request_route_auto() again.
Also, similar for classless static routes, let's always honor
gateway address specified in (non-classless) static routes.
2023-07-28 05:47:11 +09:00
Yu Watanabe
0ce86f5eeb
network/dhcp4: always find suitable gateway for destination address
...
And if not found, refuse to configure the route.
If a DHCP server provides classless static or static routes, then we
should use the gateway for accessing a node in the range specified in
the route. E.g. if a DHCP server provides the default gateway is
192.168.0.1, and classless static route for 8.0.0.0/8 with gateway
192.168.0.2, then we should access 8.8.8.8 through 192.168.0.2 rather
than 192.168.0.1, but should use 192.168.0.1 for 9.9.9.9.
Fixes #28358 .
2023-07-28 05:45:51 +09:00
Frantisek Sumsal
8bdece7479
network: fix fetching link properties
...
This fixes regression introduced in 5a0c810462 with which all requests
for link properties ended up with EINVAL as we kept hitting
the signature_is_single() assert in sd_bus_get_property().
2023-07-18 23:08:19 +02:00
Frantisek Sumsal
7e107bc31f
test-network: probe a couple of uncovered networkctl codepaths
2023-07-18 21:42:39 +02:00
Frantisek Sumsal
aca99a3a38
test-network: validate JSON where applicable
2023-07-18 21:42:39 +02:00
Frantisek Sumsal
c1dd58b3b6
test-network: check for captive portals received via NDISC
...
This requires fairly recent radvd that supports sending RAs with captive
portals [0].
Also, this should hopefully provide coverage for issues like:
- https://github.com/systemd/systemd/issues/28229
- https://github.com/systemd/systemd/issues/28231
- https://github.com/systemd/systemd/issues/28277
[0] https://github.com/radvd-project/radvd/pull/141
2023-07-18 11:38:58 +02:00
Frantisek Sumsal
5a000cd46f
test-network: correctly support running systemd-udevd from the build dir
...
We create the udevadm -> systemd-udevd symlink during the install phase,
so it doesn't exist in the just compiled tree. This worked in CI since
the symlink is manually created there post-build.
2023-07-17 12:56:58 +02:00
Yu Watanabe
fc25920c94
test-network: add tests for null addresses
...
For issue #26113 .
2023-07-07 19:11:37 +09:00
Yu Watanabe
86f6760038
test-network: add one more testcase for DHCPv4 classless route
...
For issue #28280 .
2023-07-07 06:57:08 +09:00
Yu Watanabe
62eaf8d039
test-network: drop ExecReload= in networkd.service and udevd.service
...
Follow-up for 0e07cdb0e7 and
f84331539d .
2023-07-06 14:55:58 +09:00
Ronan Pigott
1219391c9f
test-network: add test for an invalid captive portal uri
...
This could probably be extended to include many more invalid uri
2023-07-03 13:47:12 -07:00
Yu Watanabe
e4948bb2cd
test-network: add test for static route with preferred source
...
This adds possible reproducer for issue #28009 (though, the issue is
highly racy, hence this may not trigger the issue reliably).
2023-07-03 16:13:49 +09:00
Yu Watanabe
7e30527806
test-network: check route more strictly
2023-07-03 16:06:17 +09:00
Yu Watanabe
86c2a76e09
Merge pull request #28132 from rpigott/dhcp-captive-portal
...
Implement RFC8910: captive portal dhcp options
2023-07-03 14:51:56 +09:00
Ronan Pigott
dbe960f07f
test-network: add tests for captive portal dhcp options
2023-07-02 01:13:43 -07:00