A representation of an internet endpoint/connection. More...
#include <ipv4-end-point.h>
Public Member Functions | |
Ipv4EndPoint (Ipv4Address address, uint16_t port) | |
void | BindToNetDevice (Ptr< NetDevice > netdevice) |
void | ForwardIcmp (Ipv4Address icmpSource, uint8_t icmpTtl, uint8_t icmpType, uint8_t icmpCode, uint32_t icmpInfo) |
void | ForwardUp (Ptr< Packet > p, const Ipv4Header &header, uint16_t sport, Ptr< Ipv4Interface > incomingInterface) |
Ptr< NetDevice > | GetBoundNetDevice (void) |
Ipv4Address | GetLocalAddress (void) |
uint16_t | GetLocalPort (void) |
Ipv4Address | GetPeerAddress (void) |
uint16_t | GetPeerPort (void) |
void | SetDestroyCallback (Callback< void > callback) |
void | SetIcmpCallback (Callback< void, Ipv4Address, uint8_t, uint8_t, uint8_t, uint32_t > callback) |
void | SetLocalAddress (Ipv4Address address) |
void | SetPeer (Ipv4Address address, uint16_t port) |
void | SetRxCallback (Callback< void, Ptr< Packet >, Ipv4Header, uint16_t, Ptr< Ipv4Interface > > callback) |
Private Member Functions | |
void | DoForwardIcmp (Ipv4Address icmpSource, uint8_t icmpTtl, uint8_t icmpType, uint8_t icmpCode, uint32_t icmpInfo) |
void | DoForwardUp (Ptr< Packet > p, const Ipv4Header &header, uint16_t sport, Ptr< Ipv4Interface > incomingInterface) |
Private Attributes | |
Ptr< NetDevice > | m_boundnetdevice |
Callback< void > | m_destroyCallback |
Callback< void, Ipv4Address, uint8_t, uint8_t, uint8_t, uint32_t > | m_icmpCallback |
Ipv4Address | m_localAddr |
uint16_t | m_localPort |
Ipv4Address | m_peerAddr |
uint16_t | m_peerPort |
Callback< void, Ptr< Packet > , Ipv4Header, uint16_t, Ptr < Ipv4Interface > > | m_rxCallback |
A representation of an internet endpoint/connection.
This class provides an internet four-tuple (source and destination ports and addresses). These are used in the ns3::Ipv4EndPointDemux as targets of lookups. The class also has a callback for notification to higher layers that a packet from a lower layer was received. In the ns3 internet-stack, these notifications are automatically registered to be received by the corresponding socket.
Definition at line 47 of file ipv4-end-point.h.