[ns] Disable ARP
ahmad.khayyat at ece.queensu.ca
Wed Feb 28 02:25:17 PST 2007
The two lines work perfectly. They just happened to trigger another
problem, which is taken care of now :)
On Tue, 27 Feb 2007 18:27:37 -0500
Ahmad Khayyat <ahmad.khayyat at ece.queensu.ca> wrote:
> 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?
More information about the Ns-users