ns-3
|
Public Member Functions | |
void | SetNode (Ptr< Node > node) |
virtual int | GetProtocolNumber (void) const |
virtual enum Ipv4L4Protocol::RxStatus | Receive (Ptr< Packet > p, Ipv4Header const &header, Ptr< Ipv4Interface > incomingInterface) |
void | SendDestUnreachFragNeeded (Ipv4Header header, Ptr< const Packet > orgData, uint16_t nextHopMtu) |
void | SendTimeExceededTtl (Ipv4Header header, Ptr< const Packet > orgData) |
void | SendDestUnreachPort (Ipv4Header header, Ptr< const Packet > orgData) |
virtual void | SetDownTarget (Ipv4L4Protocol::DownTargetCallback cb) |
virtual Ipv4L4Protocol::DownTargetCallback | GetDownTarget (void) const |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::Icmpv4L4Protocol. | |
static uint16_t | GetStaticProtocolNumber (void) |
Static Public Attributes | |
static const uint8_t | PROT_NUMBER = 1 |
Protected Member Functions | |
virtual void | NotifyNewAggregate () |
Ipv4L4Protocol::DownTargetCallback ns3::Icmpv4L4Protocol::GetDownTarget | ( | void | ) | const [virtual] |
This method allows a caller to get the current down target callback set for this L4 protocol, for
Implements ns3::Ipv4L4Protocol.
int ns3::Icmpv4L4Protocol::GetProtocolNumber | ( | void | ) | const [virtual] |
Implements ns3::Ipv4L4Protocol.
TypeId ns3::Icmpv4L4Protocol::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::Icmpv4L4Protocol.
This object is accessible through the following paths with Config::Set and Config::Connect:
No Attributes defined for this type.
Attributes defined in parent class ns3::Ipv4L4Protocol:
No TraceSources defined for this type.
Reimplemented from ns3::Ipv4L4Protocol.
References ns3::TypeId::SetParent().
void ns3::Icmpv4L4Protocol::NotifyNewAggregate | ( | void | ) | [protected, virtual] |
This method is invoked whenever two sets of objects are aggregated together. It is invoked exactly once for each object in both sets. This method can be overriden by subclasses who wish to be notified of aggregation events. These subclasses must chain up to their base class NotifyNewAggregate method. It is safe to call GetObject and AggregateObject from within this method.
This function must be implemented in the stack that needs to notify other stacks connected to the node of their presence in the node.
Reimplemented from ns3::Object.
References ns3::MakeCallback(), ns3::Ipv4L3Protocol::Send(), and SetDownTarget().
enum Ipv4L4Protocol::RxStatus ns3::Icmpv4L4Protocol::Receive | ( | Ptr< Packet > | p, |
Ipv4Header const & | header, | ||
Ptr< Ipv4Interface > | incomingInterface | ||
) | [virtual] |
p | packet to forward up |
header | IPv4 Header information |
incomingInterface | the Ipv4Interface on which the packet arrived |
Called from lower-level layers to send the packet up in the stack.
Implements ns3::Ipv4L4Protocol.
References ns3::Ipv4Header::GetDestination(), ns3::Ipv4Header::GetSource(), NS_LOG_DEBUG, NS_LOG_FUNCTION, and ns3::Packet::RemoveHeader().
void ns3::Icmpv4L4Protocol::SetDownTarget | ( | Ipv4L4Protocol::DownTargetCallback | cb | ) | [virtual] |
This method allows a caller to set the current down target callback set for this L4 protocol
cb | current Callback for the L4 protocol |
Implements ns3::Ipv4L4Protocol.
Referenced by NotifyNewAggregate().