About RIPE | Contact  | Search | Sitemap    
Homepage RIPE  
RIPE Community Mail Archives
search  
     
RIPE Navigation Ends
About RIPE Maillists
Maillists Archive
Global Lists
Non Active Lists
RIPE NCC Navigation Ends
Next Section
<<< Chronological >>> Author Index    Subject Index <<< Threads >>>

performance patch

  • From: Curtis Villamizar < >
  • Date: Tue, 17 Mar 1998 15:01:24 -0500
  • Cc:
  • Reply-to:


I hope this is the right place to send a tiny patch.  In any case,
this minor recoding makes the syntax check go a whole lot faster.

Curtis



Index: src/syntax.pl
===================================================================
RCS file: /usr/local/CVS-routing-dev/irr-source/dbase/src/syntax.pl,v
retrieving revision 2.4
diff -c -r2.4 syntax.pl
*** syntax.pl	1997/11/14 20:49:12	2.4
--- syntax.pl	1998/03/17 19:59:25
***************
*** 490,501 ****
  #
  # Now check the actual keywords
  #
! 	while($tmppol =~ s/(\S+)//) {
! 	    if (!&isaskeyword($1)) {
! 		return $O_ERROR, 
! 		"syntax error in \"$ATTL{$key}: peer $as cost $pref\"\n\t$1 ".
! 
! 		    "is not a routing policy KEYWORD";
  	    }
  	}
  	return $O_OK;
--- 490,501 ----
  #
  # Now check the actual keywords
  #
!        local($tmpword);
!        foreach $tmpword ( split("\\s+", "$tmppol") ) {
! 	   if (!&isaskeyword($tmpword)) {
! 	       return $O_ERROR, 
! 	       "syntax error in \"$ATTL{$key}: peer $as cost $pref\"\n".
! 		   \t$tmpword is not a routing policy KEYWORD";
  	    }
  	}
  	return $O_OK;




  • Post To The List:
<<< Chronological >>> Author    Subject <<< Threads >>>
 

Next Section
     About RIPE | Site Map | LIR Portal | About the RIPE NCC | Contact | © RIPE Community. All rights reserved.
RIPE.NET Homepage LIR Portal RIPE Community