From d78fc63fe037e2dc1fc0f2cde5ecfdb3eab69d8f Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Sat, 17 May 2008 16:30:32 -0700 Subject: Fix 3266: Syntax validation for as-path-prepend does not allow 32 bit ASNs Fix 3268 : CLI allows an as-path-prepend of > 24 ASNs but routing engine does not appear to support > 24 --- scripts/policy/vyatta-check-as-prepend.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3 From e24d6daf280ed7d51924d0c5e2851c3381556dc4 Mon Sep 17 00:00:00 2001 From: rbalocca Date: Tue, 20 May 2008 11:31:16 -0700 Subject: Ignore derived files --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index fe1750d5..3abe0570 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ /configure /debian/files /debian/vyatta-cfg-quagga +/debian/vyatta-cfg-quagga.debhelper.log /INSTALL /Makefile.in /Makefile -- cgit v1.2.3