Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Nicolas Cavallari <Nicolas.Cavallari@lri.fr>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: netfilter@vger.kernel.org
Subject: Re: Bogus MAC in netfilter-queue for IF_MULTICAST_LOOPed packets.
Date: Wed, 01 Jun 2011 14:05:21 +0200	[thread overview]
Message-ID: <4DE62B01.7070707@lri.fr> (raw)
In-Reply-To: <alpine.LNX.2.01.1106011223410.19261@frira.zrqbmnf.qr>

>> The LOG target display these packets as having no MAC address (Indeed,
>> the multicast loop code strips the MAC header).
>
> Headers are not stripped.
>
> The "lo" device is of type loopback, so there will be no MAC header
> generated at all, because none is necessary. Subsequently, there is
> nothing to strip.

The multicast loopback code does not use the lo device, it uses netif_rx 
on the output interface.

see ip_dev_loopback_xmit() at net/ipv4/ip_output.c:118. it does a
skb_reset_mac_header() and a __skb_pull(skb_network_offset()).

      reply	other threads:[~2011-06-01 12:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-01  9:36 Bogus MAC in netfilter-queue for IF_MULTICAST_LOOPed packets Nicolas Cavallari
2011-06-01 10:31 ` Jan Engelhardt
2011-06-01 12:05   ` Nicolas Cavallari [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=4DE62B01.7070707@lri.fr \
    --to=nicolas.cavallari@lri.fr \
    --cc=jengelh@medozas.de \
    --cc=netfilter@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