mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-19 04:41:07 +01:00
Add TPROXY_MARK to the output of 'shorewall show marks'
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
b9d59bc60c
commit
9aa78656ec
@ -4185,10 +4185,10 @@ sub get_configuration( $$$ ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( ( my $userbits = $config{PROVIDER_OFFSET} - $config{TC_BITS} ) > 0 ) {
|
if ( ( my $userbits = $config{PROVIDER_OFFSET} - $config{TC_BITS} ) > 0 ) {
|
||||||
|
|
||||||
$globals{USER_MASK} = make_mask( $userbits ) << $config{TC_BITS};
|
$globals{USER_MASK} = make_mask( $userbits ) << $config{TC_BITS};
|
||||||
|
$globals{USER_BITS} = $userbits;
|
||||||
} else {
|
} else {
|
||||||
$globals{USER_MASK} = 0;
|
$globals{USER_MASK} = $globals{USER_BITS} = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( supplied ( $val = $config{ZONE2ZONE} ) ) {
|
if ( supplied ( $val = $config{ZONE2ZONE} ) ) {
|
||||||
@ -4606,7 +4606,7 @@ sub dump_mark_layout() {
|
|||||||
$globals{TC_MASK} );
|
$globals{TC_MASK} );
|
||||||
|
|
||||||
dumpout( "User",
|
dumpout( "User",
|
||||||
$globals{USER_MASK},
|
$globals{USER_BITS},
|
||||||
$globals{TC_MAX} + 1,
|
$globals{TC_MAX} + 1,
|
||||||
$globals{USER_MASK},
|
$globals{USER_MASK},
|
||||||
$globals{USER_MASK} );
|
$globals{USER_MASK} );
|
||||||
@ -4628,6 +4628,12 @@ sub dump_mark_layout() {
|
|||||||
$globals{EXCLUSION_MASK},
|
$globals{EXCLUSION_MASK},
|
||||||
$globals{EXCLUSION_MASK},
|
$globals{EXCLUSION_MASK},
|
||||||
$globals{EXCLUSION_MASK} );
|
$globals{EXCLUSION_MASK} );
|
||||||
|
|
||||||
|
dumpout( "TProxy",
|
||||||
|
1,
|
||||||
|
$globals{TPROXY_MARK},
|
||||||
|
$globals{TPROXY_MARK},
|
||||||
|
$globals{TPROXY_MARK} );
|
||||||
}
|
}
|
||||||
|
|
||||||
END {
|
END {
|
||||||
|
Loading…
Reference in New Issue
Block a user