Automatically specify the output interface on CLASSIFY tcrule

This commit is contained in:
Tom Eastep 2011-05-08 14:22:50 -07:00
parent a7edb358ed
commit a41ae6af76

View File

@ -258,6 +258,12 @@ sub process_tc_rule( ) {
$originalmark = join( ':', normalize_hex( $mark ), normalize_hex( $designator ) );
fatal_error "Unknown Class ($originalmark)}" unless ( $device = $classids{$originalmark} );
fatal_error "IFB Classes may not be specified in tcrules" if @{$tcdevices{$device}{redirected}};
if ( $dest eq '-' ) {
$dest = $device;
} elsif ( $dest !=~ /^\a/ ) {
$dest = join( ':', $device, $dest );
}
}
$chain = 'tcpost';