From: Yu Watanabe Date: Wed, 27 Oct 2021 16:40:19 +0000 (+0900) Subject: test-network: add tests for invalid [IPv6AddressLabel] section X-Git-Tag: v250-rc1~398^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8edcd775e80d59029f9fbe3200bf3189b744fb83;p=thirdparty%2Fsystemd.git test-network: add tests for invalid [IPv6AddressLabel] section --- diff --git a/test/test-network/conf/25-ipv6-address-label-section.network b/test/test-network/conf/25-ipv6-address-label-section.network index 1e3f47b567b..89a5c2a6bcd 100644 --- a/test/test-network/conf/25-ipv6-address-label-section.network +++ b/test/test-network/conf/25-ipv6-address-label-section.network @@ -8,3 +8,27 @@ IPv6AcceptRA=no [IPv6AddressLabel] Label=4444 Prefix=2004:da8:1:0::/64 + +# invalid sections +[IPv6AddressLabel] +# No Label= +Prefix=2004:da8:1:1::/64 + +[IPv6AddressLabel] +# No Prefix= +Label=4445 + +[IPv6AddressLabel] +# Invalid label +Label=0xffffffff +Prefix=2004:da8:1:2::/64 + +[IPv6AddressLabel] +# IPv4 mapped prefix +Label=4446 +Prefix=::ffff:c0a8:0/120 + +[IPv6AddressLabel] +# Invalid prefix +Label=4447 +Prefix=192.168.1.0/24