forked from extern/shorewall_code
Correct icmp-type and icmpv6-type
This commit is contained in:
parent
fd1e996fb1
commit
990d6e504d
@ -446,31 +446,33 @@ use constant { UNIQUE => 1,
|
|||||||
MATCH => 8,
|
MATCH => 8,
|
||||||
CONTROL => 16 };
|
CONTROL => 16 };
|
||||||
|
|
||||||
my %opttype = ( rule => CONTROL,
|
my %opttype = ( rule => CONTROL,
|
||||||
cmd => CONTROL,
|
cmd => CONTROL,
|
||||||
|
|
||||||
dhcp => UNIQUE,
|
dhcp => UNIQUE,
|
||||||
|
|
||||||
mode => CONTROL,
|
mode => CONTROL,
|
||||||
cmdlevel => CONTROL,
|
cmdlevel => CONTROL,
|
||||||
simple => CONTROL,
|
simple => CONTROL,
|
||||||
|
|
||||||
i => UNIQUE,
|
i => UNIQUE,
|
||||||
s => UNIQUE,
|
s => UNIQUE,
|
||||||
o => UNIQUE,
|
o => UNIQUE,
|
||||||
d => UNIQUE,
|
d => UNIQUE,
|
||||||
p => UNIQUE,
|
p => UNIQUE,
|
||||||
dport => UNIQUE,
|
dport => UNIQUE,
|
||||||
sport => UNIQUE,
|
sport => UNIQUE,
|
||||||
|
'icmp-type' => UNIQUE,
|
||||||
|
'icmpv6-type' => UNIQUE,
|
||||||
|
|
||||||
comment => CONTROL,
|
comment => CONTROL,
|
||||||
|
|
||||||
policy => MATCH,
|
policy => MATCH,
|
||||||
state => EXCLUSIVE,
|
state => EXCLUSIVE,
|
||||||
|
|
||||||
jump => TARGET,
|
jump => TARGET,
|
||||||
target => TARGET,
|
target => TARGET,
|
||||||
targetopts => TARGET,
|
targetopts => TARGET,
|
||||||
);
|
);
|
||||||
|
|
||||||
my %aliases = ( protocol => 'p',
|
my %aliases = ( protocol => 'p',
|
||||||
@ -482,9 +484,11 @@ my %aliases = ( protocol => 'p',
|
|||||||
'out-interface' => 'o',
|
'out-interface' => 'o',
|
||||||
dport => 'dport',
|
dport => 'dport',
|
||||||
sport => 'sport',
|
sport => 'sport',
|
||||||
|
'icmp-type' => 'icmp-type',
|
||||||
|
'icmpv6-type' => 'icmpv6-type',
|
||||||
);
|
);
|
||||||
|
|
||||||
my @unique_options = ( qw/p dport sport s d i o/ );
|
my @unique_options = ( qw/p dport sport icmp-type icmpv6-type s d i o/ );
|
||||||
|
|
||||||
#
|
#
|
||||||
# Rather than initializing globals in an INIT block or during declaration,
|
# Rather than initializing globals in an INIT block or during declaration,
|
||||||
|
Loading…
Reference in New Issue
Block a user