Skip to content

Commit

Permalink
netfilter: ebtables: add CONFIG_COMPAT support
Browse files Browse the repository at this point in the history
Main code for 32 bit userland ebtables binary with 64 bit kernels
support.

Tested on x86_64 kernel only, using 64bit ebtables binary
for output comparision.

At least ebt_mark, m_mark and ebt_limit need CONFIG_COMPAT hooks, too.

remaining problem:

The ebtables userland makefile has:
ifeq ($(shell uname -m),sparc64)
	CFLAGS+=-DEBT_MIN_ALIGN=8 -DKERNEL_64_USERSPACE_32
endif

struct ebt_replace, ebt_entry_match etc. then contain userland-side
padding, i.e.  even if we are called from a 32 bit userland, the
structures may already be in the right format.

This problem is addressed in a follow-up patch.

Signed-off-by: Florian Westphal <[email protected]>
  • Loading branch information
Florian Westphal authored and Florian Westphal committed Feb 16, 2010
1 parent 49facff commit 81e675c
Showing 1 changed file with 886 additions and 1 deletion.
Loading

0 comments on commit 81e675c

Please sign in to comment.