Daan De Meyer
15c1a7855c
test: Allow using TEST_MATCH_TESTCASE with systemd-networkd-tests.py
2024-05-14 22:58:28 +02:00
Yu Watanabe
7ef26afca5
test-network: simplify and unify waiting loop
...
Also,
- drop unused fail_assert arguments,
- use wait_links() and check_networkd_log() in wait_activated().
2024-05-11 02:13:34 +09:00
Yu Watanabe
acc06d8a68
test-network: make link_exists() take multiple arguments
...
This also improves performance of test_delete_links().
2024-05-11 02:13:34 +09:00
Yu Watanabe
d22f2fb912
test-network: check existence of kernel bug
...
This adds checks for the kernel bug caused by
3ddc2231c8 ,
it will be fixed by
https://patchwork.kernel.org/project/netdevbpf/patch/20240510072932.2678952-1-edumazet@google.com/
2024-05-10 20:39:56 +09:00
Yu Watanabe
e92d7b7dd9
test-network: introduce --no-journal option
...
This should be useful when the test run as a service, e.g.
running on a mkosi image.
2024-05-10 20:39:30 +09:00
Yu Watanabe
24e37929ed
test-network: do not fail when /etc/protocols does not exist
...
Also this makes several checks more strict.
2024-05-10 15:16:20 +09:00
Yu Watanabe
2a4f9139d9
test-network: do not fail test_macvlan() with old kernel or ip command
2024-05-10 14:36:38 +09:00
Yu Watanabe
e97bb361a0
test-network: do not fail if macvlan module is not available
2024-05-10 14:33:38 +09:00
Daan De Meyer
f2adc1de89
test-network: Make source directory optional
2024-05-01 16:15:20 +02:00
Sebastian Pucilowski
e6c4b5dc52
network: DHCP version logging typos
...
Some DHCP client log messages report "DHCP4" or "DHCP6" instead of
"DHCPv4" or "DHCPv6" as used within the rest of the codebase. Typos
fixed.
2024-04-28 11:47:55 +09:00
Yu Watanabe
0fe4a1c870
test-network: add test for [IPv6SendRA] ReachableTimeSec= and RetransmitSec=
2024-04-22 18:42:56 +09:00
Yu Watanabe
d51377ac42
test-network: add test for global UseDomains= setting
2024-04-20 12:01:53 +09:00
Yu Watanabe
3b4eeccd27
test-network: add test case of RS sent by the same interface
2024-04-18 09:40:23 +09:00
Yu Watanabe
45c2bbbaea
test-network: introduce check_networkd_log() helper function
2024-04-18 09:40:23 +09:00
Yu Watanabe
864c7980c0
test-network: drop trailing spaces
...
Follow-up for fb57300743 .
2024-04-18 09:40:23 +09:00
Luca Boccassi
a4328b284e
Merge pull request #32258 from yuwata/network-tc-fix-stack-overflow
...
network/tc: fix stack overflow
2024-04-15 22:34:39 +02:00
Yu Watanabe
ae9fd433d6
Merge pull request #32194 from henryli001/lihl/add-defaultUseDomains-config
...
network: add mechanism to configure default UseDomains= setting
2024-04-14 13:40:06 +09:00
Henry Li
fb57300743
network: add mechanism to configure default UseDomains= setting, update man page and add test
2024-04-13 16:54:31 -07:00
Yu Watanabe
e6fa91195b
test-network: add test for stack overflow in qdisc_drop() and tclass_drop()
2024-04-13 09:39:55 +09:00
Yu Watanabe
9944629eee
network/ndisc: fix verification of sender of Redirect message
...
The sender must be the first-hop router of the destination. Previously,
we only accepted Redirect messages whose sender is the current default
router with the highest priority.
See RFC 4861 section 8.1 for more details.
Fixes #31981 .
2024-04-12 04:59:42 +09:00
Yu Watanabe
2e73aa507b
network/ndisc: do not set per-route MTU and hop limit
...
Setting MTU announced in RA message to routes is problematic, as the
value may be larger than the device MTU (IFLA_MTU), and in such case the
route cannot be used.
These two properties are now set per-interface, and gracefully handled
such invalid cases. Hence not necessary to set them to each route.
Follow-up for #32195 .
2024-04-12 04:59:38 +09:00
Luca Boccassi
d0ea800943
Merge pull request #32195 from yuwata/network-ndisc-mtu
...
network: several cleanups for IPv6 MTU
2024-04-10 23:12:21 +01:00
Yu Watanabe
a0430b0d95
test-network: add test case for ndisc MTU option
2024-04-10 12:24:33 +09:00
Yu Watanabe
ce4ed0ad99
test-network: add test case for regenerating prefix stable address on conflict
...
For issue #31605 .
2024-04-10 04:36:03 +09:00
Yu Watanabe
9dcdf16b25
test-network: add test cases for Redirect and Neighbor Advertisement message handling
2024-04-05 06:22:42 +09:00