[NETFILTER]: xt_tables: add centralized error checking
authorPatrick McHardy <kaber@trash.net>
Tue, 21 Mar 2006 01:59:06 +0000 (17:59 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Mar 2006 01:59:06 +0000 (17:59 -0800)
commit37f9f7334b86ffc3b8a1921842ae33cb9aa22ee3
treed207ae0a0f2eb37072dd4690de95b6cf170e4e04
parent6ea46c9c12da79ec6eead0cf4b3114143dd30bc1
[NETFILTER]: xt_tables: add centralized error checking

Introduce new functions for common match/target checks (private data
size, valid hooks, valid tables and valid protocols) to get more consistent
error reporting and to avoid each module duplicating them.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netfilter/x_tables.h
net/netfilter/x_tables.c