hi,
at click/conf/wifi you have some click examples. As Harald says u have
to pull & push the correct headers into the packet.
u can begin with this basic pseudo-ibss script.
regards
Javier Sánchez
// *** CONFIGURATION ***
define($IP_ADR 6.0.0.1/8)
define($MAC_ADR 00:1B:11:BB:F1:78) //change, use u real hw mac
define($BSSID 00:00:00:00:00:00)
define($TXPOWER 63)
define($TXRATE 22)
define($DEVICE ath0)
// *** SEND ***
FromHost(fake1, $IP_ADR, ETHER $MAC_ADR)
-> Queue()
-> WifiEncap(0, $BSSID)
-> SetTXPower($TXPOWER)
-> SetTXRate($TXRATE)
-> RadiotapEncap()
-> ToDevice($DEVICE);
// *** RECEIVE ***
FromDevice($DEVICE, PROMISC true, OUTBOUND true)
-> RadiotapDecap()
-> FilterPhyErr()
-> FilterTX()
-> WifiDupeFilter()
-> WifiDecap()
-> SetPacketType(HOST)
-> ToHost(fake1);
_______________________________________________
click mailing list
[email protected]
https://amsterdam.lcs.mit.edu/mailman/listinfo/click