add NetDevice::NeedsArp method
parent
e63689a66f
commit
cd2fabe2f1
|
@ -360,4 +360,10 @@ PointToPointNetDevice::DoGetChannel(void) const
|
|||
return m_channel;
|
||||
}
|
||||
|
||||
bool
|
||||
PointToPointNetDevice::DoNeedsArp (void) const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace ns3
|
||||
|
|
|
@ -254,6 +254,7 @@ private:
|
|||
* @see class TraceResolver
|
||||
*/
|
||||
virtual TraceResolver *DoCreateTraceResolver (TraceContext const &context);
|
||||
virtual bool DoNeedsArp (void) const;
|
||||
/**
|
||||
* Enumeration of the states of the transmit machine of the net device.
|
||||
*/
|
||||
|
|
|
@ -220,4 +220,10 @@ NetDevice::GetNode (void) const
|
|||
return m_node;
|
||||
}
|
||||
|
||||
bool
|
||||
NetDevice::NeedsArp (void) const
|
||||
{
|
||||
return DoNeedsArp ();
|
||||
}
|
||||
|
||||
}; // namespace ns3
|
||||
|
|
|
@ -152,6 +152,8 @@ class NetDevice {
|
|||
*/
|
||||
bool Send(Packet& p, const MacAddress& dest, uint16_t protocolNumber);
|
||||
|
||||
bool NeedsArp (void) const;
|
||||
|
||||
protected:
|
||||
/**
|
||||
* Enable broadcast support. This method should be
|
||||
|
@ -222,7 +224,7 @@ class NetDevice {
|
|||
* subclasses to forward packets. Subclasses MUST override this method.
|
||||
*/
|
||||
virtual bool SendTo (Packet& p, const MacAddress& dest) = 0;
|
||||
|
||||
virtual bool DoNeedsArp (void) const = 0;
|
||||
virtual TraceResolver *DoCreateTraceResolver (TraceContext const &context) = 0;
|
||||
virtual Channel *DoGetChannel (void) const = 0;
|
||||
Node* m_node;
|
||||
|
|
Loading…
Reference in New Issue