Date: Sun, 26 Oct 2014 03:05:36 +0200 From: clutton <clutton@zoho.com> To: freebsd-wireless@freebsd.org Subject: Re: pcap_inject() ruins my handmade packets Message-ID: <1414285536.12280.6.camel@eva02.mbsd> In-Reply-To: <CAJ-Vmo=b7xgFHseZJbUpLYY%2B%2BFh2jt6D74dPw6BYtaKBHA=%2BUQ@mail.gmail.com> References: <1414110110.1395.14.camel@eva02.mbsd> <CAJ-Vmo=b7xgFHseZJbUpLYY%2B%2BFh2jt6D74dPw6BYtaKBHA=%2BUQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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. > On 23 October 2014 17:21, clutton <clutton@zoho.com> 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" > _______________________________________________ > 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1414285536.12280.6.camel>