From: Patrick McHardy <kaber@trash.net>
To: Phil Oester <kernel@linuxace.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH] Pkttype match mismatches in OUTPUT chain
Date: Wed, 13 Aug 2008 15:32:24 +0200 [thread overview]
Message-ID: <48A2E268.6010808@trash.net> (raw)
In-Reply-To: <20080810225353.GA31138@linuxace.com>
Phil Oester wrote:
> Minor change to fix compile warning.
>
> On Sun, Aug 10, 2008 at 03:18:35PM -0700, Phil Oester wrote:
>> Back in 7/2006, we fixed an issue with the pkttype match mismatching
>> on locally generated packets.[1] At the time, I didn't test the fix
>> in the OUTPUT chain, but only in the INPUT chain, where packets showed
>> up as PACKET_LOOPBACK. Unfortunately, when packets are output, they
>> aren't tagged as PACKET_LOOPBACK so the fix was incomplete.
>>
>> Below is another attempt at fixing the problem in all cases, and fixes
>> the original netfilter bugzilla #484 as well as a new bug submission (which
>> I can't get the number of since bugzilla is presently down).
>>
>> The fix is somewhat complicated because when broadcast packets hit the
>> OUTPUT chain they have no destination MAC attached, so the "simple"
>> test for 'all FF' doesn't work for us, and instead we have to consult the
>> routing table.
>>
>> One other note: since IPv6 doesn't have the concept of "broadcast", perhaps
>> the userspace extension shouldn't allow broadcast rules to be added for
>> that family?
>>
>> Phil
>>
>> Signed-off-by: Phil Oester <kernel@linuxace.com>
This is getting more and more kludgy, wouldn't it make more sense
to move the pkt_type initialisation from the device layer to the
protocol layer?
next prev parent reply other threads:[~2008-08-13 13:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-10 22:18 [PATCH] Pkttype match mismatches in OUTPUT chain Phil Oester
2008-08-10 22:53 ` Phil Oester
2008-08-13 13:32 ` Patrick McHardy [this message]
2008-08-14 12:02 ` Phil Oester
2008-09-03 16:06 ` Phil Oester
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=48A2E268.6010808@trash.net \
--to=kaber@trash.net \
--cc=kernel@linuxace.com \
--cc=netfilter-devel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox