this.hostTracker = null;
}
}
-
+
public void setTopologyManager(ITopologyManager tm) {
this.topologyManager = tm;
}
generateAndSendReply(sourceIP, sourceMAC);
return;
}
-
+
/*
* ARP Request Handling:
* If targetIP is the IP of the subnet, reply with ARP REPLY
nodeConnectors = subnet.getNodeConnectors();
}
for (NodeConnector p : nodeConnectors) {
- if (topologyManager.isInternal(p)) {
- continue;
- }
+ if (topologyManager.isInternal(p)) {
+ continue;
+ }
ARP arp = new ARP();
byte[] senderIP = subnet.getNetworkAddress().getAddress();
byte[] targetIPB = targetIP.getAddress();
}
return PacketResult.IGNORED;
}
-
+
private void startPeriodicTimer() {
this.periodicTimer = new Timer("ArpHandler Periodic Timer");
this.periodicTimer.scheduleAtFixedRate(new TimerTask() {