All of lore.kernel.org
 help / color / mirror / Atom feed
From: Harald Welte <laforge@netfilter.org>
To: Scott MacKay <scottmackay@yahoo.com>
Cc: Yong <sdssly@sina.com>, netfilter-devel@lists.netfilter.org
Subject: Re: indev_name in bridge+iptables?
Date: Mon, 14 Jul 2003 09:41:34 +0200	[thread overview]
Message-ID: <20030714074134.GA6538@naboo> (raw)
In-Reply-To: <20030712152759.5547.qmail@web13905.mail.yahoo.com>

[-- Attachment #1: Type: text/plain, Size: 1741 bytes --]

On Sat, Jul 12, 2003 at 08:27:59AM -0700, Scott MacKay wrote:
> Hi, I had the exact same thing.  The physical name is
> not passed up in the message, sucks huh?
> 
> What I resorted to was to alter the kernel code for
> the QUEUE messages.  The low level structure has the
> physical device names in it, but are not passed up.  I
> altered it so if there was a physical device name for
> in & out, it copied those values over the existing
> indev and outdev names (since 'br0' is pretty
> useless).  There is only 1 file to change, but can't
> remember it off the top of my head.  The 'real' method
> would be to alter the _msg structure to include the
> physdev names in it, but I was lazy :P

The reason for this dilemma is historical:

- ip_queue was in the kernel first (since pre 2.4.0)
- support for bridging firewalls was added later
- real support for physdev matching in iptables is only available
  for kernel 2.5.x
- changing the ipq_msg structure would render all previous versions of
  libipq (and existing ip_queue using applications) incompatible with
  new kernels

Combined with the fact that bridging firewalls still seem very rare,
we'd rather stick with compatibility instead of adding that feature...

... however, a patch is always welcome and we'd put it into
patch-o-matic 'experimental' or something.

> -Scott

-- 
- Harald Welte <laforge@netfilter.org>             http://www.netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2003-07-14  7:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20030707222621.16976.2349.Mailman@kashyyyk>
2003-07-08 14:35 ` bridge+netfilter+libipq questions Yong Li
2003-07-09  5:11 ` indev_name in bridge+iptables? Yong
2003-07-12 15:27   ` Scott MacKay
2003-07-14  7:41     ` Harald Welte [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030714074134.GA6538@naboo \
    --to=laforge@netfilter.org \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=scottmackay@yahoo.com \
    --cc=sdssly@sina.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.