[ns] Disable ARP
Ahmad Khayyat
ahmad.khayyat at ece.queensu.ca
Tue Feb 27 15:27:37 PST 2007
What is the easiest way to disable the use of the ARP protocol?
I guess the IP address corresponds to the MAC address in ns-2, doesn't
it? So how do I make the LL/ARP modules use it immediately without
using ARP?
I tried adding the following two lines at the top of
ARPTable::arpresolve(nsaddr_t dst, Packet *p, LL *ll)
mac_->hdr_dst((char*) HDR_MAC(p), dst);
return 0;
but that caused strange behaviour on rare occasions, where a packet
suddenly would appear in another far node. Playing with ARP doesn't
explain the problem for me, but somehow removing those two lines
gets rid of the strange behaviour. So, what is a proper way of
disabling ARP?
Thanks..
Ahmad
More information about the Ns-users
mailing list