netfilter: fix ebtables compat support
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 21 Apr 2011 08:57:21 +0000 (10:57 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 10 May 2011 07:48:59 +0000 (09:48 +0200)
commit5a6351eecf8c87afed9c883bb6341d09406d74ba
tree2e7262b7002c8f09abaedb9e4e91ec51fdb01299
parent315c34dae0069d0c67abd714bb846cd466289c7f
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