Don't copy limited broadcast routes to provider tables

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2011-11-18 07:07:51 -08:00
parent 364b30fd9b
commit 7c0cb69c29

View File

@ -155,9 +155,22 @@ sub copy_table( $$$ ) {
emit ( ' case $net in',
' default)',
' ;;',
' *)',
" run_ip route add table $number \$net \$route $realm",
' ;;',
' *)' );
if ( $family == F_IPV4 ) {
emit ( ' case $net in',
' 255.255.255.255*)',
' ;;',
' *)',
" run_ip route add table $number \$net \$route $realm",
' ;;',
' esac',
);
} else {
emit ( " run_ip route add table $number \$net \$route $realm" );
}
emit ( ' ;;',
' esac',
"done\n"
);
@ -189,9 +202,21 @@ sub copy_and_edit_table( $$$$ ) {
' ;;',
' *)',
' case $(find_device $route) in',
" $copy)",
" run_ip route add table $number \$net \$route $realm",
' ;;',
" $copy)" );
if ( $family == F_IPV4 ) {
emit ( ' case $net in',
' 255.255.255.255*)',
' ;;',
' *)',
" run_ip route add table $number \$net \$route $realm",
' ;;',
' esac',
);
} else {
emit ( " run_ip route add table $number \$net \$route $realm" );
}
emit ( ' ;;',
' esac',
' ;;',
' esac',