diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2003-03-01 12:20:49 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2003-03-01 12:20:49 +0000 |
commit | 82f7f073250a9387a43b5c10c05e87cb91df1c4d (patch) | |
tree | 9505f4914be175a1b4956a61e7737d907d09d803 /extensions | |
parent | 7085d6606ca27d3a079c68d75617ccceef490dab (diff) |
trivial change
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/ebt_ip.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/extensions/ebt_ip.c b/extensions/ebt_ip.c index 36cb3c9..76da2b7 100644 --- a/extensions/ebt_ip.c +++ b/extensions/ebt_ip.c @@ -344,13 +344,13 @@ static void final_check(const struct ebt_u_entry *entry, print_error("For IP filtering the protocol must be " "specified as IPv4"); - if (ipinfo->bitmask & (EBT_IP_SPORT|EBT_IP_DPORT) && - (!ipinfo->bitmask & EBT_IP_PROTO || - ipinfo->invflags & EBT_IP_PROTO || - (ipinfo->protocol!=IPPROTO_TCP && - ipinfo->protocol!=IPPROTO_UDP))) - print_error("For port filtering the IP protocol must be " - "either 6 (tcp) or 17 (udp)"); + if (ipinfo->bitmask & (EBT_IP_SPORT|EBT_IP_DPORT) && + (!(ipinfo->bitmask & EBT_IP_PROTO) || + ipinfo->invflags & EBT_IP_PROTO || + (ipinfo->protocol!=IPPROTO_TCP && + ipinfo->protocol!=IPPROTO_UDP))) + print_error("For port filtering the IP protocol must be " + "either 6 (tcp) or 17 (udp)"); } static void print(const struct ebt_u_entry *entry, |