Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3479751ybn; Fri, 27 Sep 2019 07:01:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwJBiwPNyawd6DycuKzf58E6w17PiQyWDlKYlsPvLivadMS3NTxThdDTGJXt2FVkG5hTXk X-Received: by 2002:a05:6402:750:: with SMTP id p16mr4742715edy.188.1569592919767; Fri, 27 Sep 2019 07:01:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569592919; cv=none; d=google.com; s=arc-20160816; b=bTBE2oC0qgKMk51/r63v9dXiWBqGDEsY9VZZ/GAv2eZETAg3tF/yEbidS6YG4XgBOm vnyJmBOadnTtrin3ZWEhsbKSbGSdNO+3RUqopEDqmaJXUb5N9KZlAy69xjPrpptM6gJv HNnFUPEepWvQ+2RmI4pVkLnC9pwqcipS5ghBlbIRTBGfwvblbFytoZhZKMDh3b/TiQNd LbAqu6SHuDWsHekdR88tv+b94hpXTsc3rwj1ywE0MIu0l5GIBKsTLpHOLTSK7+/aAZWb NoRol24unR6N02d2dR/Nsn7c6Ug2M4TOOmRP/fxTXUnA5Z2S6Gtt7LLDUskolX79lPqO 7Cvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=pP5vcAGfepOmMTj1/XPmHlR5viMP6UHtrkDWgLxF0NE=; b=Uz6NPiBGcMyjNhiKsvFJB/hI1RVbvjNeL4+06Gh8C7kaNazKl4GALJ1SE85N+zNX1c kVc9tbTKQBgvdgu/yAWq2Q5OD0LDAgd1x+vamZmKnXHMqbANTx/AcMOV9uBRrynMcWj8 IvQ/OWNNjkFrTV+OBYpHRn53nk/8u3YtxbJHHjFyIWRQ/ryrEmNm+w6hGpBha7xprTV4 POtIJBTSXHL1cdYhv0qMSZgE74t9SX5sVVBy3fAwLC8W02WIGAYky8+Q0G5lyT11MdvE a1xRIaPzPE+NPKhjrbU2P6bLdbx8bhhy4yjP+7MPuFhpPCw4Uvz9YAe3D0aUHq6aNsVS Ig6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id nl6si2675245ejb.207.2019.09.27.07.01.15; Fri, 27 Sep 2019 07:01:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727266AbfI0OAY (ORCPT + 99 others); Fri, 27 Sep 2019 10:00:24 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:55990 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726843AbfI0OAY (ORCPT ); Fri, 27 Sep 2019 10:00:24 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iDqnG-0000z2-UJ; Fri, 27 Sep 2019 16:00:23 +0200 Message-ID: <41aff25b6f14cdfd5ce1e0e157c49bd8c9b3ebd3.camel@sipsolutions.net> Subject: Re: mac80211_hwsim: packets being transmitted through the monitor interface From: Johannes Berg To: Ramon Fontes Cc: linux-wireless@vger.kernel.org Date: Fri, 27 Sep 2019 16:00:22 +0200 In-Reply-To: (sfid-20190927_150130_471576_DD589F69) References: <49ded6ae8a23c29168ab7061235292ac7a853e0f.camel@sipsolutions.net> <6d62fe25faca3c000964e4f712bf3ba2d974d2f2.camel@sipsolutions.net> (sfid-20190927_150130_471576_DD589F69) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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