]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitbd6bba58af380d10a595c2831b8546755cffe4e6
treed207ae0a0f2eb37072dd4690de95b6cf170e4e04
parente961824d33bb308c5f05ee2a2906cfbd96f5f51b
[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