Re: [RFC][DRAFT][PATCH] iptables 32bit compat layer



From: Kirill Korotaev <dev@xxxxxxxxxx>
Date: Wed, 18 Jan 2006 12:12:54 +0300

> This patch extends current iptables compatibility layer in order to get
> 32bit iptables to work on 64bit kernel. Current layer is insufficient
> due to alignment checks both in kernel and user space tools. Current
> draft version works correctly with standard targets only
> (ACCEPT/DROP/FORWARD).
>
> ToDo:
> - extend translation to include more matches and targets. Use arrays of
> structures like { name, size_diff, func_for_convert_data} for this
> purpose
> - extend get_info to return corrected size. Add size calculation to
> get_entries.

Thanks for doing this work.

But it would make a lot more sense to add
compat_setsockopt and compat_getsockopt socket
operations, call down into there, and then implement
these translations inside of netfilter itself.

This would avoid an enormous amount of copying
and munging, and also would keep netfilter internals
outside of the generic socket compat layer code.

Thanks.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Suggestion: LKM should be able to add system call for itself
    ... system calls should be able to extend as long as the kernel is ... Using the interface we provide to add and delete system call (the ... but when the kernel later adds new ones.. ... Look at nfs etc. ...
    (Linux-Kernel)
  • Re: Damm Small Linux
    ... >extend some low-level video functions? ... MMX was almost obsolete when it came out for those reasons. ... argument - that kernel recompiling will match the kernel to the CPU ...
    (sci.electronics.design)
  • Re: [9fans] too good to pass up (SRB Comments)
    ... Reminds me of a change I made to the PDP-11 C code generator ... was needed for the kernel to extend the process's allocation ... instruction (I think floating-point was the big problem, ...
    (comp.os.plan9)
  • Re: win32forth allocate
    ... the B option to remetacompile the kernel ... and extend it into W32F, so only those 2 files (i.e. not the editors ...
    (comp.lang.forth)