diff options
| author | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org> | 2005-05-17 11:38:37 +0000 | 
|---|---|---|
| committer | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org> | 2005-05-17 11:38:37 +0000 | 
| commit | 5c14f27ef46e65317ca4da8657f7c1a1a91da4c4 (patch) | |
| tree | abc22db769c30b45127c793012b357a6b03df2d2 /extensions/libct_proto_tcp.c | |
| parent | a75bb977ff16c9f3b3bdccdcd4173e9ef033463f (diff) | |
| download | conntrack-tools-5c14f27ef46e65317ca4da8657f7c1a1a91da4c4.tar.gz conntrack-tools-5c14f27ef46e65317ca4da8657f7c1a1a91da4c4.zip | |
o Added descriptive error messages.
o Fix wrong flags check in [tcp|udp] proto helpers.
Diffstat (limited to 'extensions/libct_proto_tcp.c')
| -rw-r--r-- | extensions/libct_proto_tcp.c | 14 | 
1 files changed, 5 insertions, 9 deletions
| diff --git a/extensions/libct_proto_tcp.c b/extensions/libct_proto_tcp.c index a2243dc..4cddf53 100644 --- a/extensions/libct_proto_tcp.c +++ b/extensions/libct_proto_tcp.c @@ -115,16 +115,12 @@ int parse(char c, char *argv[],  int final_check(unsigned int flags)  { -	if (!(flags & ORIG_SPORT)) -		return 0; -	else if (!(flags & ORIG_DPORT)) -		return 0; -	else if (!(flags & REPL_SPORT)) -		return 0; -	else if (!(flags & REPL_DPORT)) -		return 0; +	if ((flags & ORIG_SPORT) && (flags & ORIG_DPORT)) +		return 1; +	else if ((flags & REPL_SPORT) && (flags & REPL_DPORT)) +		return 1; -	return 1; +	return 0;  }  void print_tuple(struct ip_conntrack_tuple *t) | 
