forked from extern/shorewall_code
Add another variable to the preceding optimization
This commit is contained in:
parent
64e49229f8
commit
3c5cadb02c
@ -947,9 +947,7 @@ sub process_tc_filter() {
|
||||
|
||||
fatal_error "Invalid INTERFACE:CLASS ($devclass)" if defined $rest || ! ($device && $class );
|
||||
|
||||
my ( $ip, $ip32, $prio ) = $family == F_IPV4 ? ('ip', 'ip', 10 ) : ('ipv6', 'ip6', 11 );
|
||||
|
||||
my $lo = $family - 2; #Length offset: 2 for IPV4 and 4 for IPV6.
|
||||
my ( $ip, $ip32, $prio , $lo ) = $family == F_IPV4 ? ('ip', 'ip', 10, 2 ) : ('ipv6', 'ip6', 11 , 4 );
|
||||
|
||||
( $device , my $devref ) = dev_by_number( $device );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user