Solution for tutorial 2 - sender

From WirelessAfrica
Revision as of 23:02, 12 January 2010 by Kingdavid (talk | contribs) (New page: Change the $SRC and $DST to suite the IP addresses of your nodes define($DEV ath0, $SRC 172.30.1.74, $DST 172.30.1.75) InfiniteSource("Goodbye World", 1 ) ->UDPIPEncap($SRC, 4001, ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Change the $SRC and $DST to suite the IP addresses of your nodes
define($DEV ath0, $SRC 172.30.1.74, $DST 172.30.1.75)

InfiniteSource("Goodbye World", 1 )
 ->UDPIPEncap($SRC, 4001, $DST, 4002)
 ->IPPrint("my packet")
 ->arpq :: ARPQuerier($DEV)
 ->q :: Queue
 ->ToDevice($DEV)

FromDevice($DEV)
 -> c :: Classifier(12/0806 20/0002)
 -> [1] arpq

arpq[1] -> q