diff options
author | Susant Sahani <ssahani@gmail.com> | 2024-08-14 19:47:44 +0200 |
---|---|---|
committer | Susant Sahani <ssahani@gmail.com> | 2024-08-14 19:48:26 +0200 |
commit | 3859ef162b288523ca8b23b0dc5c7711eaf9cdb9 (patch) | |
tree | 066bd902f88b4df222a31c12b5436eb291b83a01 /test/test-network | |
parent | network: netdev - BareUDP Add support for srcportmin (diff) | |
download | systemd-3859ef162b288523ca8b23b0dc5c7711eaf9cdb9.tar.xz systemd-3859ef162b288523ca8b23b0dc5c7711eaf9cdb9.zip |
test-network: Add test for BareUDP srcportmin
Diffstat (limited to 'test/test-network')
-rw-r--r-- | test/test-network/conf/25-bareudp.netdev | 1 | ||||
-rwxr-xr-x | test/test-network/systemd-networkd-tests.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/test/test-network/conf/25-bareudp.netdev b/test/test-network/conf/25-bareudp.netdev index 4fd924242a..e6c208cbf6 100644 --- a/test/test-network/conf/25-bareudp.netdev +++ b/test/test-network/conf/25-bareudp.netdev @@ -5,4 +5,5 @@ Name=bareudp99 [BareUDP] DestinationPort=1000 +MinSourcePort=1001 EtherType=ipv4 diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 4ab6c0749f..0b95bfff14 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -1556,6 +1556,7 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities): print(output) self.assertRegex(output, 'dstport 1000 ') self.assertRegex(output, 'ethertype ip ') + self.assertRegex(output, 'srcportmin 1001 ') @expectedFailureIfModuleIsNotAvailable('batman-adv') def test_batadv(self): |