1. 25 Mar, 2010 3 commits
  2. 18 Mar, 2010 1 commit
  3. 17 Mar, 2010 3 commits
  4. 16 Mar, 2010 6 commits
  5. 13 Mar, 2010 1 commit
  6. 08 Mar, 2010 2 commits
  7. 07 Mar, 2010 3 commits
  8. 03 Mar, 2010 1 commit
  9. 02 Mar, 2010 1 commit
  10. 28 Feb, 2010 14 commits
  11. 16 Feb, 2010 5 commits
    • Florian Westphal's avatar
      netfilter: ebtables: mark: add CONFIG_COMPAT support · 6e705f56
      Florian Westphal authored
      Add the required handlers to convert 32 bit
      ebtables mark match and match target structs to 64bit layout.
      Signed-off-by: default avatarFlorian Westphal <fwestphal@astaro.com>
    • Florian Westphal's avatar
      netfilter: ebt_limit: add CONFIG_COMPAT support · 314ddca3
      Florian Westphal authored
      ebt_limit structure is larger on 64 bit systems due
      to "long" type used in the (kernel-only) data section.
      Setting .compatsize is enough in this case, these values
      have no meaning in userspace.
      Signed-off-by: default avatarFlorian Westphal <fwestphal@astaro.com>
    • Florian Westphal's avatar
      netfilter: ebtables: try native set/getsockopt handlers, too · 90b89af7
      Florian Westphal authored
      ebtables can be compiled to perform userspace-side padding of
      structures. In that case, all the structures are already in the
      'native' format expected by the kernel.
      This tries to determine what format the userspace program is
      For most set/getsockopts, this can be done by checking
      the len argument for sizeof(compat_ebt_replace) and
      re-trying the native handler on error.
      In case of EBT_SO_GET_ENTRIES, the native handler is tried first,
      it will error out early when checking the *len argument
      (the compat version has to defer this check until after
       iterating over the kernel data set once, to adjust for all
       the structure size differences).
      As this would cause error printks, remove those as well, as
      recommended by Bart de Schuymer.
      Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
    • Florian Westphal's avatar
      netfilter: ebtables: add CONFIG_COMPAT support · 81e675c2
      Florian Westphal authored
      Main code for 32 bit userland ebtables binary with 64 bit kernels
      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)
      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: default avatarFlorian Westphal <fwestphal@astaro.com>
    • Florian Westphal's avatar
      netfilter: ebtables: split update_counters into two functions · 49facff9
      Florian Westphal authored
      allows to call do_update_counters() from upcoming CONFIG_COMPAT
      code instead of copy&pasting the same code.
      Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>