Allow specification of the TPROXY mark in CONNMARK and MARK.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2018-06-14 07:58:06 -07:00
parent b11d63a7bd
commit 150f7ab798
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -5289,8 +5289,8 @@ sub do_imac( $ ) {
#
sub verify_mark( $ ) {
my $mark = $_[0];
my $limit = $globals{EXCLUSION_MASK};
my $mask = $globals{TC_MASK};
my $limit = $config{TC_EXPERT} ? $globals{TPROXY_MARK} + 1 : $globals{EXCLUSION_MASK};
my $mask = $config{TC_EXPERT} ? $globals{TPROXY_MARK} : $globals{TC_MASK};
my $value = numeric_value( $mark );
fatal_error "Invalid Mark or Mask value ($mark)"