L4 Protocol abstract base class. More...
#include <ipv4-l4-protocol.h>
Public Member Functions | |
virtual int | GetProtocolNumber (void) const =0 |
virtual void | Receive (Ptr< Packet > p, Ipv4Address const &source, Ipv4Address const &destination, Ptr< Ipv4Interface > incomingInterface)=0 |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::Ipv4L4Protocol. |
L4 Protocol abstract base class.
This is an abstract base class for layer four protocols which use IPv4 as the network layer.
virtual int ns3::Ipv4L4Protocol::GetProtocolNumber | ( | void | ) | const [pure virtual] |
Implemented in ns3::TcpL4Protocol, and ns3::UdpL4Protocol.
static TypeId ns3::Ipv4L4Protocol::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::Ipv4L4Protocol.
Attributes defined for this type:
No TraceSources defined for this type.
Reimplemented from ns3::Object.
Reimplemented in ns3::TcpL4Protocol, and ns3::UdpL4Protocol.
virtual void ns3::Ipv4L4Protocol::Receive | ( | Ptr< Packet > | p, | |
Ipv4Address const & | source, | |||
Ipv4Address const & | destination, | |||
Ptr< Ipv4Interface > | incomingInterface | |||
) | [pure virtual] |
p | packet to forward up | |
source | source address of packet received | |
destination | address of packet received | |
incomingInterface | the Ipv4Interface on which the packet arrived |
Called from lower-level layers to send the packet up in the stack.
Implemented in ns3::TcpL4Protocol, and ns3::UdpL4Protocol.