diff options
author | Patrick McHardy <kaber@trash.net> | 2006-03-20 18:01:28 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-03-20 18:01:28 -0800 |
commit | aa83c1ab4384c0905527c84e5135a56daa885834 (patch) | |
tree | 3bfacb7cf888e0d312a1a3ed2e9afff72db5b4f4 /net/ipv4/netfilter/arp_tables.c | |
parent | 1d5cd90976fa0d1cc21554b9d43f5c517323ebfc (diff) | |
download | op-kernel-dev-aa83c1ab4384c0905527c84e5135a56daa885834.zip op-kernel-dev-aa83c1ab4384c0905527c84e5135a56daa885834.tar.gz |
[NETFILTER]: Convert arp_tables targets to centralized error checking
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/netfilter/arp_tables.c')
-rw-r--r-- | net/ipv4/netfilter/arp_tables.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/netfilter/arp_tables.c b/net/ipv4/netfilter/arp_tables.c index 2fdf75d..6162d0e3 100644 --- a/net/ipv4/netfilter/arp_tables.c +++ b/net/ipv4/netfilter/arp_tables.c @@ -1143,11 +1143,13 @@ void arpt_unregister_table(struct arpt_table *table) /* The built-in targets: standard (NULL) and error. */ static struct arpt_target arpt_standard_target = { .name = ARPT_STANDARD_TARGET, + .targetsize = sizeof(int), }; static struct arpt_target arpt_error_target = { .name = ARPT_ERROR_TARGET, .target = arpt_error, + .targetsize = ARPT_FUNCTION_MAXNAMELEN, }; static struct nf_sockopt_ops arpt_sockopts = { |