From 2b98f68f9d64d5cf0a92547a04549db6cf1250cd Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Sat, 1 Mar 2003 12:20:49 +0000 Subject: trivial change --- userspace/ebtables2/extensions/ebt_ip.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'userspace') diff --git a/userspace/ebtables2/extensions/ebt_ip.c b/userspace/ebtables2/extensions/ebt_ip.c index 36cb3c9..76da2b7 100644 --- a/userspace/ebtables2/extensions/ebt_ip.c +++ b/userspace/ebtables2/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, -- cgit v1.2.3