summaryrefslogtreecommitdiff
path: root/src/validators
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-12-12 22:34:05 +0100
committerChristian Poessinger <christian@poessinger.com>2021-12-12 22:36:23 +0100
commitbc5de97c996bfc2fd9766a22a9cfce6904abe36f (patch)
treea5a8f3742bc64270eb004b9e1a32755b9f22dd97 /src/validators
parent37410a6285223a871700698f11a12a6856b7b3c7 (diff)
downloadvyos-1x-bc5de97c996bfc2fd9766a22a9cfce6904abe36f.tar.gz
vyos-1x-bc5de97c996bfc2fd9766a22a9cfce6904abe36f.zip
validator: T4036: validate if multicast address is single (no netmask)
(cherry picked from commit c3471fe9d4cf0aab46feae94618925a95bcd5411)
Diffstat (limited to 'src/validators')
-rwxr-xr-xsrc/validators/ipv4-multicast2
-rwxr-xr-xsrc/validators/ipv6-multicast2
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