mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-14 19:54:06 +01:00
Change classid generation algorithm
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9939 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
e934ce9d85
commit
8d450e673c
@ -598,8 +598,8 @@ sub validate_tc_class( $$$$$$ ) {
|
|||||||
|
|
||||||
$markval = numeric_value( $mark );
|
$markval = numeric_value( $mark );
|
||||||
fatal_error "Invalid MARK ($markval)" unless defined $markval;
|
fatal_error "Invalid MARK ($markval)" unless defined $markval;
|
||||||
|
$classnumber = ( $devref->{number} << 10 ) | $mark;
|
||||||
fatal_error "Duplicate MARK ($mark)" if $tcref->{$classnumber};
|
fatal_error "Duplicate MARK ($mark)" if $tcref->{$classnumber};
|
||||||
$classnumber = $devnum . $mark;
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
fatal_error "Missing MARK" unless $devref->{classify};
|
fatal_error "Missing MARK" unless $devref->{classify};
|
||||||
@ -667,7 +667,7 @@ sub validate_tc_class( $$$$$$ ) {
|
|||||||
$tcref->{pfifo} = $devref->{pfifo} unless $tcref->{flow} || $tcref->{pfifo};
|
$tcref->{pfifo} = $devref->{pfifo} unless $tcref->{flow} || $tcref->{pfifo};
|
||||||
|
|
||||||
push @tcclasses, "$device:$classnumber";
|
push @tcclasses, "$device:$classnumber";
|
||||||
|
|
||||||
while ( --$occurs ) {
|
while ( --$occurs ) {
|
||||||
fatal_error "Duplicate class number ($classnumber)" if $tcclasses{$device}{++$classnumber};
|
fatal_error "Duplicate class number ($classnumber)" if $tcclasses{$device}{++$classnumber};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user