netfilter: fix ebtables compat support
commit954d70388307eb1ccb328d9f960657022a316243
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 21 Apr 2011 08:57:21 +0000 (21 10:57 +0200)
committerPatrick McHardy <kaber@trash.net>
Thu, 21 Apr 2011 08:57:21 +0000 (21 10:57 +0200)
tree4dac6cba3d54ca81b71569cb032506bb95eac496
parent358b1361bed42f4e6cbf8956a73aebf193957d4a
netfilter: fix ebtables compat support

commit 255d0dc34068a976 (netfilter: x_table: speedup compat operations)
made ebtables not working anymore.

1) xt_compat_calc_jump() is not an exact match lookup
2) compat_table_info() has a typo in xt_compat_init_offsets() call
3) compat_do_replace() misses a xt_compat_init_offsets() call

Reported-by: dann frazier <dannf@dannf.org>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/bridge/netfilter/ebtables.c
net/netfilter/x_tables.c