linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Ramon Fontes <ramonreisfontes@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: mac80211_hwsim: packets being transmitted through the monitor interface
Date: Fri, 27 Sep 2019 16:00:22 +0200	[thread overview]
Message-ID: <41aff25b6f14cdfd5ce1e0e157c49bd8c9b3ebd3.camel@sipsolutions.net> (raw)
In-Reply-To: <CAK8U23bUjYuG2=trtuEpcYT1xL1+kTugWrQKi=UTuMnFN-XDSw@mail.gmail.com> (sfid-20190927_150130_471576_DD589F69)

On Fri, 2019-09-27 at 10:01 -0300, Ramon Fontes wrote:
> > A monitor interface created on one of the (hwsim or other!) wiphys shows
> > all packets seen by that device.
> 
> Weird. When I try to reproduce the same with a physical network
> interface, I can see no packets. It only shows the 802.11 protocol.
> With mac80211_hwsim, in turn, I can see, for example, TCP packets and
> their headers include the 802.11 header.

At least with mac80211 drivers that should work everywhere, though you
may get encrypted packets if software crypto is used, or crypto headers
if hardware crypto is used etc.

johannes


      reply	other threads:[~2019-09-27 14:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-27  1:54 mac80211_hwsim: packets being transmitted through the monitor interface Ramon Fontes
2019-09-27 12:16 ` Johannes Berg
2019-09-27 12:30   ` Ramon Fontes
2019-09-27 12:35     ` Johannes Berg
2019-09-27 13:01       ` Ramon Fontes
2019-09-27 14:00         ` Johannes Berg [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=41aff25b6f14cdfd5ce1e0e157c49bd8c9b3ebd3.camel@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=ramonreisfontes@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;
as well as URLs for NNTP newsgroup(s).