From: Jan Engelhardt Date: Tue, 27 Apr 2010 13:34:34 +0000 (+0200) Subject: netfilter: x_tables: rectify XT_FUNCTION_MAXNAMELEN usage X-Git-Tag: v2.6.35-rc1~473^2~168^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b2cbd42bef5a22bb681acd607a7c3fbca1eeb3c;p=pandora-kernel.git netfilter: x_tables: rectify XT_FUNCTION_MAXNAMELEN usage There has been quite a confusion in userspace about XT_FUNCTION_MAXNAMELEN; because struct xt_entry_match used MAX-1, userspace would have to do an awkward MAX-2 for maximum length checking (due to '\0'). This patch adds a new define that matches the definition of XT_TABLE_MAXNAMELEN - being the size of the actual struct member, not one off. Signed-off-by: Jan Engelhardt Signed-off-by: Patrick McHardy --- Reading git-diff-tree failed