All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Gregor Maier <gregor@net.in.tum.de>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: libnetfilter_queue: get link layer header
Date: Thu, 23 Feb 2006 11:03:51 +0100	[thread overview]
Message-ID: <43FD8887.2050902@trash.net> (raw)
In-Reply-To: <43FB4989.7070901@net.in.tum.de>

Gregor Maier wrote:
> I was wondering if it's somehow possible to aquire the complete link
> level header in libnetfilter_queue. I can get the HW Protocol
> (Ethertype) and the SRC MAC but it is also possible to get the DST MAC.
> 
> I know that for outgoing packets the information is only available after
> the arp lookup (so in/after POSTROUTING) but for INPUT / FORWARD packets
> the DST Mac is always available. Maybe it would be a solution to set the
> DST MAC to all zeros if it's not yet known and then add a mechanism to
> pass the DST Mac to the userspace app listeing on the queue.

I agree that the current implementation isn't perfect since it always
asks the driver to fill in its own address, even if the received packet
was a broadcast packet, instead of using the data from the packet.
I've added it to my TODO list to look into this.

      reply	other threads:[~2006-02-23 10:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-21 17:10 libnetfilter_queue: get link layer header Gregor Maier
2006-02-23 10:03 ` Patrick McHardy [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=43FD8887.2050902@trash.net \
    --to=kaber@trash.net \
    --cc=gregor@net.in.tum.de \
    --cc=netfilter-devel@lists.netfilter.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 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.