NS2 Notebook: Multi-channel Multi-interface Simulation in NS2 (2.29)

Back to Index


3. Modifications in mac/arp.cc

void
ARPTable::arpinput(Packet *p, LL *ll)
{

  ......

  // Multi-channel Multi-interface
  if(ah->arp_op == ARPOP_REPLY && ah->arp_tpa == node_->address()) {
  llinfo->macaddr_ = ah->arp_sha;
  llinfo->up_ = 1;

  }

 

  /*
  * Can we send whatever's being held?
  */

  // Multi-channel Multi-interface
  if(llinfo->hold_ && ah->arp_op == ARPOP_REPLY && ah->arp_tpa == node_->address()) {

  ......

}

 

 
© Copyright 2008. All rights reserved. Powered by Free Site Templates