public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Dumazet <eric.dumazet@gmail.com>
To: Daniel Borkmann <dborkman@redhat.com>
Cc: Ronny Meeus <ronny.meeus@gmail.com>, netdev <netdev@vger.kernel.org>
Subject: Re: How do I receive vlan tags on an AF_PACKET socket in 3.4 kernel?
Date: Wed, 31 Jul 2013 08:09:30 -0700	[thread overview]
Message-ID: <1375283370.10515.100.camel@edumazet-glaptop> (raw)
In-Reply-To: <51F9226F.30202@redhat.com>

On Wed, 2013-07-31 at 16:42 +0200, Daniel Borkmann wrote:

> You can use bpfc (git://github.com/borkmann/netsniff-ng.git), it also has
> an extensive man page. That should probably do it:
> 
> $ cat foo
> ld vlant
> jneq #4094, drop
> ret #-1
> drop: ret #0
> 
> $ bpfc foo
> { 0x20, 0, 0, 0xfffff02c },
> { 0x15, 0, 1, 0x00000ffe },
> { 0x6, 0, 0, 0xffffffff },
> { 0x6, 0, 0, 0x00000000 },

Thanks Daniel.

If the load of this BPF fails (because its an old kernel), then load
your old filter.

  reply	other threads:[~2013-07-31 15:09 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-30 13:07 How do I receive vlan tags on an AF_PACKET socket in 3.4 kernel? Ronny Meeus
2013-07-30 14:09 ` Eric Dumazet
2013-07-31 12:51   ` Ronny Meeus
2013-07-31 12:54     ` Daniel Borkmann
2013-07-31 14:16     ` Eric Dumazet
2013-07-31 14:36       ` Ronny Meeus
2013-07-31 14:42         ` Daniel Borkmann
2013-07-31 15:09           ` Eric Dumazet [this message]
2013-07-31 20:01             ` Ronny Meeus
2013-07-31 20:47               ` Eric Dumazet
2013-08-01  9:24                 ` Ronny Meeus
2013-08-02  8:15                   ` Daniel Borkmann
2013-08-02  9:03                     ` Ronny Meeus

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=1375283370.10515.100.camel@edumazet-glaptop \
    --to=eric.dumazet@gmail.com \
    --cc=dborkman@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=ronny.meeus@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox