Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Oct 2014 03:47:51 +0300
From:      clutton <clutton@zoho.com>
To:        freebsd-wireless@freebsd.org
Subject:   Re: pcap_inject() ruins my handmade packets
Message-ID:  <1414111671.1395.25.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

HEAD, but I didn't update it more then month.
I'm not using monitor mode, just ordinary one when I'm connected to AP,
and ahdemo. Seems raw write works with both types well, and
pcap_inject() doesn't.

The scenario is that:

handle = pcap_open_live(dev, BUFSIZ, 1, 0, errbuf); // tried without
promisk, didn't help
pcap_set_datalink(handle, DLT_IEEE802_11_RADIO);
 // I've tried others datalinks, and also skipping setting this like
Linux users do, changing datalink here changes the way how packet is
corrupted
BUILD_PACKET_STEP()
pcap_inject(handle, packet, packet_len);







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1414111671.1395.25.camel>