Fix another bug in ROUTE_FILTER Handling

This commit is contained in:
Tom Eastep 2009-12-23 15:13:43 -08:00
parent e37cf0a370
commit e38df7efcb

View File

@ -328,7 +328,7 @@ sub initialize( $ ) {
TC_SCRIPT => '',
EXPORT => 0,
UNTRACKED => 0,
VERSION => "4.4.5",
VERSION => "4.4.5.3",
CAPVERSION => 40406 ,
);
@ -2356,7 +2356,7 @@ sub get_configuration( $ ) {
if ( $capabilities{KERNELVERSION} < 20631 ) {
check_trivalue ( 'ROUTE_FILTER', '' );
} else {
$val = $capabilities{ROUTE_FILTER};
$val = $config{ROUTE_FILTER};
if ( defined $val ) {
if ( $val =~ /\d+/ ) {
fatal_error "Invalid value ($val) for ROUTE_FILTER" unless $val < 3;
@ -2369,7 +2369,7 @@ sub get_configuration( $ ) {
}
if ( $family == F_IPV6 ) {
$val = $capabilities{ROUTE_FILTER};
$val = $config{ROUTE_FILTER};
fatal_error "ROUTE_FILTER=$val is not supported in IPv6" unless $val eq 'off' || $val eq '';
}