diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rwxr-xr-x | scripts/policy/vyatta-check-as-prepend.pl | 6 |
2 files changed, 6 insertions, 1 deletions
@@ -11,6 +11,7 @@ /configure /debian/files /debian/vyatta-cfg-quagga +/debian/vyatta-cfg-quagga.debhelper.log /INSTALL /Makefile.in /Makefile diff --git a/scripts/policy/vyatta-check-as-prepend.pl b/scripts/policy/vyatta-check-as-prepend.pl index 0da3d8d6..a34ca0a7 100755 --- a/scripts/policy/vyatta-check-as-prepend.pl +++ b/scripts/policy/vyatta-check-as-prepend.pl @@ -1,6 +1,10 @@ #!/usr/bin/perl @as_list = split(' ',$ARGV[0]); foreach $as (@as_list) { - if ($as =~ /[^\d\s]/ || $as < 1 || $as > 65535) { exit 1;} + if ($as =~ /[^\d\s]/ || $as < 1 || $as > 4294967294) { exit 1;} +} +if (scalar(@as_list) > 24) { + print "Error: max 24 as paths"; + exit 1; } exit 0; |