From: Pablo Neira Ayuso Date: Mon, 9 Jun 2008 22:56:20 +0000 (-0700) Subject: netfilter: ctnetlink: group errors into logical errno sets X-Git-Tag: v2.6.27-rc1~969^2~347 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0adf9d67489cd30bab8eb93f7de81a674e44e1c3;p=pandora-kernel.git netfilter: ctnetlink: group errors into logical errno sets This patch groups ctnetlink errors into three logical sets: * Malformed messages: if ctnetlink receives a message without some mandatory attribute, then it returns EINVAL. * Unsupported operations: if userspace tries to perform an unsupported operation, then it returns EOPNOTSUPP. * Unchangeable: if userspace tries to change some attribute of the conntrack object that can only be set once, then it returns EBUSY. This patch reduces the number of -EINVAL from 23 to 14 and it results in 5 -EBUSY and 6 -EOPNOTSUPP. Signed-off-by: Pablo Neira Ayuso Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- Reading git-diff-tree failed