All of lore.kernel.org
 help / color / mirror / Atom feed
From: Willem de Bruijn <willemb@google.com>
To: mihail.dakov@ng4t.com
Cc: Daniel Borkmann <dborkman@redhat.com>, netdev@vger.kernel.org
Subject: Re: AF_PACKET: tx_ring mirrored in rx_ring?
Date: Mon, 21 Jul 2014 18:36:48 -0400	[thread overview]
Message-ID: <CA+FuTSdaZ+xw1Kj6j2VZSuT0ArOG92gPn54Hrz_eSJHOvQ0yhQ@mail.gmail.com> (raw)
In-Reply-To: <CA+FuTScUC08D_+iHwxVuvWBSDdKgT7bQv-sigwAiopFodFOc=w@mail.gmail.com>

>     {BPF_JMP | BPF_JEQ, 1, 0, PACKET_OUTGOING},
>     {BPF_RET, 0, 0, 0x00000000},
>     {BPF_RET, 0, 0, 0x0000ffff},

Small error: the condition has to be inverted for your use case. This
filters out only outgoing packets.

  reply	other threads:[~2014-07-21 22:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-21 13:18 AF_PACKET: tx_ring mirrored in rx_ring? Mihail Dakov
2014-07-21 13:38 ` Mihail Dakov
2014-07-21 13:51 ` Daniel Borkmann
2014-07-21 14:40   ` Mihail Dakov
2014-07-21 14:44     ` Fwd: " Mihail Dakov
2014-07-21 15:13     ` Daniel Borkmann
2014-07-21 18:32       ` mihail.dakov
2014-07-21 22:35         ` Willem de Bruijn
2014-07-21 22:36           ` Willem de Bruijn [this message]
2014-07-22 13:39           ` Mihail Dakov

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=CA+FuTSdaZ+xw1Kj6j2VZSuT0ArOG92gPn54Hrz_eSJHOvQ0yhQ@mail.gmail.com \
    --to=willemb@google.com \
    --cc=dborkman@redhat.com \
    --cc=mihail.dakov@ng4t.com \
    --cc=netdev@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 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.