diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-11-07 20:28:02 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-11-07 20:29:45 +0100 |
commit | b86f60bfb3340a9fa27cb6f127fba7c827481b50 (patch) | |
tree | 3ea44add5845b2e9552cf39119d10b3fe56636f8 /test/test-network-generator-conversion.sh | |
parent | network-generator: allow to specify both IPv4 and IPv6 DNS servers (diff) | |
download | systemd-b86f60bfb3340a9fa27cb6f127fba7c827481b50.tar.xz systemd-b86f60bfb3340a9fa27cb6f127fba7c827481b50.zip |
network-generator: refuse unexpected trailing strings
Diffstat (limited to 'test/test-network-generator-conversion.sh')
-rwxr-xr-x | test/test-network-generator-conversion.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test-network-generator-conversion.sh b/test/test-network-generator-conversion.sh index a9ab1b0e7f..f03847c1fa 100755 --- a/test/test-network-generator-conversion.sh +++ b/test/test-network-generator-conversion.sh @@ -302,6 +302,9 @@ INVALID_COMMAND_LINES=( "ip=fdef:c400:bd01:1096::2::[fdef:c400:bd01:1096::1]:64::ipv6:off:[fdef:c400:bd01:1096::aaaa]" "ip=[fdef:c400:bd01:1096::2]::[fdef:c400:bd01:1096::1]:64::ipv6:off:foo" "ip=[fdef:c400:bd01:1096::2]::[fdef:c400:bd01:1096::1]:64::ipv6:off:[fdef:c400:bd01:1096::aaaa]:foo" + "ip=[fdef:c400:bd01:1096::2]::[fdef:c400:bd01:1096::1]:64::ipv6:off:[fdef:c400:bd01:1096::aaaa]:[fdef:c400:bd01:1096::bbbb]:" + "ip=:::::dhcp99:dhcp6:10.0.0.128:10.0.0.129:" + "ip=:::::dhcp99:dhcp6:10.0.0.128:[fdef:c400:bd01:1096::bbbb]:" ) for cmdline in "${INVALID_COMMAND_LINES[@]}"; do (! SYSTEMD_LOG_LEVEL=debug SYSTEMD_PROC_CMDLINE="$cmdline" "$GENERATOR_BIN") |