Sending raw frames (PF_PACKET) to a host-ap device?

Jean Tourrilhes jt at bougret.hpl.hp.com
Thu Mar 13 22:06:41 EST 2003


On Thu, Mar 13, 2003 at 05:51:24PM -0800, Ben Greear wrote:
> Jean Tourrilhes wrote:
> >Ben Greear wrote :
> >
> >>Is it possible to build packets (including any source MAC addr I wish)
> >>and send them with a PF_SOCKET socket?
> >
> >
> >	The only restriction is that the source address of the packet
> >*MUST* be the one of the adapter, unless you are in master mode.
> >	More details :
> >http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Linux.Wireless.usage.html#bridge
> >	Good luck...
> 
> I actually read your page before posting, believe it or not :)
> 
> I most definately need to fake the source MAC, so I will need to be
> in master-mode, whatever that is.  Do you have any links or hints
> about how to put the NIC into master mode?

	Master == beeing the Access Point.

> I'm figuring that I need the same magic that makes bridging work, but
> I'm not having a fast time of finding the low level details.  I assume
> that either means it's as easy as loading the right driver (hostAP?)
> and then putting the device into promisc mode, or it's so difficult
> that no one with time/inclination to write documents has figured it out yet 
> :)

	Most people only want simple bridging, very few people use
PF_SOCKET.

> Ben

	Jean



More information about the HostAP mailing list