forked from extern/shorewall_code
Don't copy limited broadcast routes to provider tables
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
364b30fd9b
commit
7c0cb69c29
@ -155,9 +155,22 @@ sub copy_table( $$$ ) {
|
|||||||
emit ( ' case $net in',
|
emit ( ' case $net in',
|
||||||
' default)',
|
' 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',
|
' esac',
|
||||||
"done\n"
|
"done\n"
|
||||||
);
|
);
|
||||||
@ -189,9 +202,21 @@ sub copy_and_edit_table( $$$$ ) {
|
|||||||
' ;;',
|
' ;;',
|
||||||
' *)',
|
' *)',
|
||||||
' case $(find_device $route) in',
|
' case $(find_device $route) in',
|
||||||
" $copy)",
|
" $copy)" );
|
||||||
" 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',
|
' esac',
|
||||||
' ;;',
|
' ;;',
|
||||||
' esac',
|
' esac',
|
||||||
|
Loading…
Reference in New Issue
Block a user