1
0
mirror of https://gitlab.com/shorewall/code.git synced 2024-12-23 06:38:53 +01:00

Fix another proto editing defect

This commit is contained in:
Tom Eastep 2011-04-11 17:18:39 -07:00
parent 18f4b11b09
commit 53571043c0
2 changed files with 2 additions and 2 deletions
Shorewall/Perl/Shorewall

View File

@ -2223,7 +2223,7 @@ sub do_proto( $$$;$ )
if ( defined $protonum ) {
#
# Protocol is numeric and <= 65535 or is defined in /etc/protocols or NSS equivalent
# Protocol is numeric and <= 255 or is defined in /etc/protocols or NSS equivalent
#
fatal_error "'!0' not allowed in the PROTO column" if $invert && ! $protonum;

View File

@ -330,7 +330,7 @@ sub resolve_proto( $ ) {
if ( $proto =~ /^\d+$/ || $proto =~ /^0x/ ) {
$number = numeric_value ( $proto );
defined $number && $number <= 65535 ? $number : undef;
defined $number && $number <= 255 ? $number : undef;
} else {
#
# Allow 'icmp' as a synonym for 'ipv6-icmp' in IPv6 compilations