From owner-freebsd-wireless@FreeBSD.ORG Fri Oct 24 00:32:56 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 4C51855F for ; Fri, 24 Oct 2014 00:32:56 +0000 (UTC) Received: from mail-wg0-x22e.google.com (mail-wg0-x22e.google.com [IPv6:2a00:1450:400c:c00::22e]) (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 DD0639BF for ; Fri, 24 Oct 2014 00:32:55 +0000 (UTC) Received: by mail-wg0-f46.google.com with SMTP id l18so12429wgh.17 for ; Thu, 23 Oct 2014 17:32:53 -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=JEhcWcF86JMtwSFTVMxpzUKTqqfiyytiQbtJ7gjIbrw=; b=GvyO+5ikXSEvWz1GINYotgDjFX5Xp0aA7tLgk5bv05uRVyzo+BqsQmXuLmEbnZwdbK EG8hpDXh6Ld7kzNH8shxucq6BQuFlOefa4oJd4336qFDOp9g0EQSuSSyDybzF7JU4aAn LRqaZUcIzo/6eML8fD0PEF95GczqHQqMYd0gSLofztKTd/fdf6IDWdZjz5RfKZEwq4fc Iz94UlarEQdjmbRl/9lM3V3rJrfQ1zhr8EiGMpykQ5Aezvu7LRCUEc8Dmrf9fQC02McL J57FWQKGWzm7NqhqnXTMfculep8cHu/3eMemQxmIWqpkQjRIWvkpoKI4P2v3fqRBONvS nQRw== MIME-Version: 1.0 X-Received: by 10.180.11.200 with SMTP id s8mr499048wib.20.1414110773645; Thu, 23 Oct 2014 17:32:53 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.106.136 with HTTP; Thu, 23 Oct 2014 17:32:53 -0700 (PDT) In-Reply-To: <1414110110.1395.14.camel@eva02.mbsd> References: <1414110110.1395.14.camel@eva02.mbsd> Date: Thu, 23 Oct 2014 17:32:53 -0700 X-Google-Sender-Auth: ha_-V2_LzSELTwBnEXcSSs6AN1Q 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: Fri, 24 Oct 2014 00:32:56 -0000 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 On 23 October 2014 17:21, clutton wrote: > Hi list. > > I'm porting a Linux application [reaver], and have a tough time figuring > out what is wrong. > > The way how Linux users use it doesn't work I mean building packet like > radiotap_header+frame+payload and use pcap_inject() for injections. > > Nevertheless, using the same packets with sockets work like a charm. > Since I didn't find any working example with packet injections > conjugates with pcap_inject for FreeBSD, I starting think it doesn't > work on FreeBSD platform. > > Right now, I started using LD_PRELOAD with my own version of libpcap, > because after end of day it uses write(), but why it is ruins my packets > is not obvious for me yet. > > May be somebody could explain me? May be it's well known not fixable > bug, and I'm just wasting my time. > > I really want to do this using libpcap! Using sockets is quicker > approach for me, but you know, fixing libpcap will bring a lot of others > apps to FreeBSD realm. > > > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org"