Detect partial prefixes / incomplete IPv4 address in acls.
This commit is contained in:
3
bin/tests/system/checkconf/bad-ipv4-prefix-dotted1.conf
Normal file
3
bin/tests/system/checkconf/bad-ipv4-prefix-dotted1.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
acl myacl {
|
||||
127.1; /* Incomplete dotted IPv4 address / prefix */
|
||||
};
|
||||
3
bin/tests/system/checkconf/bad-ipv4-prefix-dotted2.conf
Normal file
3
bin/tests/system/checkconf/bad-ipv4-prefix-dotted2.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
acl myacl {
|
||||
127.1/8; /* No-zero bits */
|
||||
};
|
||||
3
bin/tests/system/checkconf/bad-ipv4-prefix2.conf
Normal file
3
bin/tests/system/checkconf/bad-ipv4-prefix2.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
acl myacl {
|
||||
127; /* Non-dotted quad IPv4 address (0.0.0.127) / prefix without length. */
|
||||
};
|
||||
Reference in New Issue
Block a user