From owner-freebsd-wireless@FreeBSD.ORG Thu Oct 30 17:22:36 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 579AD280 for ; Thu, 30 Oct 2014 17:22:36 +0000 (UTC) Received: from mail-wg0-x236.google.com (mail-wg0-x236.google.com [IPv6:2a00:1450:400c:c00::236]) (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 E30CD8F2 for ; Thu, 30 Oct 2014 17:22:35 +0000 (UTC) Received: by mail-wg0-f54.google.com with SMTP id m15so4766290wgh.41 for ; Thu, 30 Oct 2014 10:22:34 -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=tUhCbA++s9UEUa9KuZfuxQWFcnH3/Zr5ZvH8SURv5Bs=; b=UcnwxQMpEVowX//7EvbOXM+pHq4owysaD2GA0Vnu6WTFwAepQhMWPgFQ4rIsfH6faA A29NX/8vQqPNPZOvZI/oGUvHEJCJ+EKEwQ70reFtG8guc9pYu+Jw2jLVpf2DSjmyGDzn Bg/i5UTdRlAN1fG9M+dO3qwyH6xDDW9E0AlHLAnXnevCVgUBQoXVmrysRrS49eZ++lBi J69QaJW5B9vK2hhRePCHy7MSD+I2q3+/b9b/zlOG92zG0lS2MSDQvHEzRYv0A/ntHOVT N2bqojNB3axv37+E83tEx4dtgcy4Dpn8IlbXQj9A8+LhxR62WJy+sGyDkUzB1vmb7mVr Mp7g== MIME-Version: 1.0 X-Received: by 10.180.87.33 with SMTP id u1mr20344085wiz.20.1414689754115; Thu, 30 Oct 2014 10:22:34 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.106.136 with HTTP; Thu, 30 Oct 2014 10:22:34 -0700 (PDT) In-Reply-To: <1414686078.8086.21.camel@eva02.mbsd> References: <1414110110.1395.14.camel@eva02.mbsd> <1414285536.12280.6.camel@eva02.mbsd> <1414685517.8086.15.camel@eva02.mbsd> <1414686078.8086.21.camel@eva02.mbsd> Date: Thu, 30 Oct 2014 10:22:34 -0700 X-Google-Sender-Auth: 1T_tJYbzO_deN0cNgY9GSG2j3aE 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: Thu, 30 Oct 2014 17:22:36 -0000 On 30 October 2014 09:21, clutton wrote: >> > One more question: no radiotap headers currently can be injected. Right? >> > The underlie levels just ignore DLT_IEEE802_11_RADIO dlt. > > The program I work with is [rever] https://code.google.com/p/reaver-wps > > I looked at aircrack-ng sources, and tools/net80211 and none of them > includes radiotap headers for injection, when I do I have corrupted > packets. Ok. Maybe /that/ path is broken. The raw xmit path should handle having radiotap headers. Can you post some sample code that triggers / doesn't trigger the problem? -adrian