diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-12-12 22:34:05 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-12-12 22:34:05 +0100 |
commit | c3471fe9d4cf0aab46feae94618925a95bcd5411 (patch) | |
tree | b614be4b17f3f6fceef0c4c7119a1ec2d25d3f22 /src/validators | |
parent | ebccc291865132d2dd03edd2a56d400dd087ef43 (diff) | |
download | vyos-1x-c3471fe9d4cf0aab46feae94618925a95bcd5411.tar.gz vyos-1x-c3471fe9d4cf0aab46feae94618925a95bcd5411.zip |
validator: T4036: validate if multicast address is single (no netmask)
Diffstat (limited to 'src/validators')
-rwxr-xr-x | src/validators/ipv4-multicast | 2 | ||||
-rwxr-xr-x | src/validators/ipv6-multicast | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/validators/ipv4-multicast b/src/validators/ipv4-multicast index e5cbc9532..5465c728d 100755 --- a/src/validators/ipv4-multicast +++ b/src/validators/ipv4-multicast @@ -1,3 +1,3 @@ #!/bin/sh -ipaddrcheck --is-ipv4-multicast $1 +ipaddrcheck --is-ipv4-multicast $1 && ipaddrcheck --is-ipv4-single $1 diff --git a/src/validators/ipv6-multicast b/src/validators/ipv6-multicast index 66cd90c9c..5afc437e5 100755 --- a/src/validators/ipv6-multicast +++ b/src/validators/ipv6-multicast @@ -1,3 +1,3 @@ #!/bin/sh -ipaddrcheck --is-ipv6-multicast $1 +ipaddrcheck --is-ipv6-multicast $1 && ipaddrcheck --is-ipv6-single $1 |