[NETFILTER]: x_tables: simplify compat API
authorPatrick McHardy <kaber@trash.net>
Wed, 20 Sep 2006 19:05:37 +0000 (12:05 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 22 Sep 2006 22:20:01 +0000 (15:20 -0700)
commit9fa492cdc160cd27ce1046cb36f47d3b2b1efa21
tree6ecb2a92a87523af2a1f7236f0bca456ca0677f3
parent79030ed07de673e8451a03aecb9ada9f4d75d491
[NETFILTER]: x_tables: simplify compat API

Split the xt_compat_match/xt_compat_target into smaller type-safe functions
performing just one operation. Handle all alignment and size-related
conversions centrally in these function instead of requiring each module to
implement a full-blown conversion function. Replace ->compat callback by
->compat_from_user and ->compat_to_user callbacks, responsible for
converting just a single private structure.

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