Sending raw frames (PF_PACKET) to a host-ap device?
Pedro Estrela
pedro.estrela
Wed Mar 12 21:04:25 PST 2003
the best way to do this and a lot more, is to use the libpcap packet
capture/generation library that tcpdump uses.
using this library, you can most definitly:
- put a interface into promiscuous mode;
- receive all packets, with all headers up to level 2, including (later
versions of etheral pcap) prism2 headers;
- send any possible packets, including layer 2 headers. (for exemple, custum
ARP packets)
it's more complicated than a PF_packet socket, which also works, but its
MUCH more flexible.
please reply to:
pedro.estrela at inesc.pt
----- Original Message -----
From: "Ben Greear" <greearb at candelatech.com>
To: <hostap at shmoo.com>
Sent: Thursday, March 13, 2003 4:58 AM
Subject: Sending raw frames (PF_PACKET) to a host-ap device?
> Is it possible to build packets (including any source MAC addr I wish)
> and send them with a PF_SOCKET socket? Anything special I need to do
> to make this work (if it can be done?)
>
> And if that works, I am assuming I can put the wlan device in
> promiscious mode so that I can receive an answer to whatever MAC
> I just created?
>
> Thanks,
> Ben
> --
> Ben Greear <greearb at candelatech.com> <Ben_Greear AT excite.com>
> President of Candela Technologies Inc http://www.candelatech.com
> ScryMUD: http://scry.wanfear.com http://scry.wanfear.com/~greear
>
>
> _______________________________________________
> HostAP mailing list
> HostAP at shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
>
More information about the Hostap
mailing list