diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2010-04-27 15:34:34 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-04-27 15:34:34 +0200 |
commit | 4b2cbd42bef5a22bb681acd607a7c3fbca1eeb3c (patch) | |
tree | ec3461cd593eaf65ffcd3fbb538c3976da1caa60 /net/ipv4 | |
parent | af740b2c8f4521e2c45698ee6040941a82d6349d (diff) |
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 <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions