From owner-freebsd-wireless@FreeBSD.ORG Sun Oct 26 02:54:21 2014 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A5C242F0 for ; Sun, 26 Oct 2014 02:54:21 +0000 (UTC) Received: from mail-wg0-x230.google.com (mail-wg0-x230.google.com [IPv6:2a00:1450:400c:c00::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3FBE6CB4 for ; Sun, 26 Oct 2014 02:54:21 +0000 (UTC) Received: by mail-wg0-f48.google.com with SMTP id m15so1522913wgh.7 for ; Sat, 25 Oct 2014 19:54:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=kIJird82CqbL/nQRqbTxJ1gmy+q8Ov1QhSfiY896kVg=; b=xTexxJ8M2fUFhMyUdNmmIKMcbUmCHgVPvnCRbblg5ps2+fhmBCPv4kpmiDsXmaYfUz yKT/5TGJ6GkccCGDiMu/eMJPFZ8SJX1sly15pK47DwaJm6qrfsyzOJoLxdpR8FXy/yxE XtHXr/LzvhuzdabsVItL25ibqcW5HjbS6SbrWAlByhph3ndXbJkQNJ5ZmrZt6scXdYya AErPXOeiikMayl5SpPJSPX0dgU8OydYpXj+dYfiz7TfBVRHhLY1oH0RIY/pjz+kx7WrB rrBfR7GrTGfz7hahE15iOgryFiF1zKEiGAsd77yw2/4WY0XjNtO+n0UERMQ3wcvn2k9W 9SGw== MIME-Version: 1.0 X-Received: by 10.194.216.162 with SMTP id or2mr14243378wjc.68.1414292058375; Sat, 25 Oct 2014 19:54:18 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.106.136 with HTTP; Sat, 25 Oct 2014 19:54:18 -0700 (PDT) In-Reply-To: <1414285536.12280.6.camel@eva02.mbsd> References: <1414110110.1395.14.camel@eva02.mbsd> <1414285536.12280.6.camel@eva02.mbsd> Date: Sat, 25 Oct 2014 19:54:18 -0700 X-Google-Sender-Auth: U40mK8tAo8XenhO0_7liFq1p2DM Message-ID: Subject: Re: pcap_inject() ruins my handmade packets From: Adrian Chadd To: clutton Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Oct 2014 02:54:21 -0000 On 25 October 2014 18:05, clutton wrote: > On Thu, 2014-10-23 at 17:32 -0700, Adrian Chadd wrote: >> Which version of FreeBSD are you using? >> >> I only recently fixed raw frame injection in monitor mode in >> FreeBSD-11. How are you trying to do raw frame injection? >> >> >> -adrian >> > > Any ideas? Why this doesn't work for me using pcap and works using > sockets? > https://www.kernel.org/doc/Documentation/networking/mac80211-injection.txt > > As I understand monitor mode can be used for injections now, is it > right? > > As I remember some discussion here (a long time ago) said that the > monitor mode is for monitoring :) and people should use other modes for > injections. But since new pcap API was introduced, we can see that the > monitor mode is not only for monitoring. It should be working. I haven't coded anything up recently to use monitor mode and inject, but I do know it now works. -adrian