From: Pablo Neira Ayuso Date: Wed, 8 Aug 2007 01:11:26 +0000 (-0700) Subject: [NETFILTER]: ctnetlink: return EEXIST instead of EINVAL for existing nat'ed conntracks X-Git-Tag: v2.6.23-rc3~70^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff4ca8273eafbba875a86d333e059e78f292107f;p=pandora-kernel.git [NETFILTER]: ctnetlink: return EEXIST instead of EINVAL for existing nat'ed conntracks ctnetlink must return EEXIST for existing nat'ed conntracks instead of EINVAL. Only return EINVAL if we try to update a conntrack with NAT handlings (that is not allowed). Decadence:libnetfilter_conntrack/utils# ./conntrack_create_nat TEST: create conntrack (0)(Success) Decadence:libnetfilter_conntrack/utils# ./conntrack_create_nat TEST: create conntrack (-1)(Invalid argument) Signed-off-by: Pablo Neira Ayuso Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- Reading git-diff-tree failed