Commit 1b31fcf3 authored by Harald Welte's avatar Harald Welte Committed by David S. Miller

[NETFILTER]: Fix icmp-type all problem in iptables.

parent 4d451f25
...@@ -1611,7 +1611,7 @@ icmp_type_code_match(u_int8_t test_type, u_int8_t min_code, u_int8_t max_code, ...@@ -1611,7 +1611,7 @@ icmp_type_code_match(u_int8_t test_type, u_int8_t min_code, u_int8_t max_code,
u_int8_t type, u_int8_t code, u_int8_t type, u_int8_t code,
int invert) int invert)
{ {
return (type == test_type && code >= min_code && code <= max_code) return ((test_type == 0xFF) || (type == test_type && code >= min_code && code <= max_code))
^ invert; ^ invert;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment