Index: src/internet/model/arp-l3-protocol.h |
=================================================================== |
--- a/src/internet/model/arp-l3-protocol.h |
+++ b/src/internet/model/arp-l3-protocol.h |
@@ -21,7 +21,7 @@ |
#define ARP_L3_PROTOCOL_H |
#include <list> |
-#include "ns3/ipv4-address.h" |
+#include "ns3/ipv4-header.h" |
#include "ns3/net-device.h" |
#include "ns3/address.h" |
#include "ns3/ptr.h" |
@@ -87,13 +87,14 @@ |
/** |
* \brief Perform an ARP lookup |
* \param p the packet |
+ * \param ipHeader the IPv4 header |
* \param destination destination IP address |
* \param device outgoing device |
* \param cache ARP cache |
* \param hardwareDestination filled with the destination MAC address (if the entry exists) |
* \return true if there is a matching ARP Entry |
*/ |
- bool Lookup (Ptr<Packet> p, Ipv4Address destination, |
+ bool Lookup (Ptr<Packet> p, const Ipv4Header & ipHeader, Ipv4Address destination, |
Ptr<NetDevice> device, |
Ptr<ArpCache> cache, |
Address *hardwareDestination); |