An IPv6 end point, four tuples identification.
More...
#include <ipv6-end-point.h>
List of all members.
Public Member Functions |
| Ipv6EndPoint (Ipv6Address addr, uint16_t port) |
| Constructor.
|
| ~Ipv6EndPoint () |
| Destructor.
|
Ipv6Address | GetLocalAddress () |
| Get the local address.
|
void | SetLocalAddress (Ipv6Address addr) |
| Set the local address.
|
uint16_t | GetLocalPort () |
| Get the local port.
|
void | SetLocalPort (uint16_t port) |
| Set the local port.
|
Ipv6Address | GetPeerAddress () |
| Get the peer address.
|
uint16_t | GetPeerPort () |
| Get the peer port.
|
void | SetPeer (Ipv6Address addr, uint16_t port) |
| Set the peer informations (address and port).
|
void | SetRxCallback (Callback< void, Ptr< Packet >, Ipv6Address, uint16_t > callback) |
| Set the reception callback.
|
void | SetIcmpCallback (Callback< void, Ipv6Address, uint8_t, uint8_t, uint8_t, uint32_t > callback) |
| Set the ICMP callback.
|
void | SetDestroyCallback (Callback< void > callback) |
| Set the default destroy callback.
|
void | ForwardUp (Ptr< Packet > p, Ipv6Address addr, uint16_t port) |
| Forward the packet to the upper level.
|
void | ForwardIcmp (Ipv6Address src, uint8_t ttl, uint8_t type, uint8_t code, uint32_t info) |
| Function called from an L4Protocol implementation to notify an endpoint of an icmp message reception.
|
Private Member Functions |
void | DoForwardUp (Ptr< Packet > p, Ipv6Address saddr, uint16_t sport) |
| ForwardUp wrapper.
|
void | DoForwardIcmp (Ipv6Address src, uint8_t ttl, uint8_t type, uint8_t code, uint32_t info) |
| ForwardIcmp wrapper.
|
Private Attributes |
Ipv6Address | m_localAddr |
| The local address.
|
uint16_t | m_localPort |
| The local port.
|
Ipv6Address | m_peerAddr |
| The peer address.
|
uint16_t | m_peerPort |
| The peer port.
|
Callback< void, Ptr< Packet >
, Ipv6Address, uint16_t > | m_rxCallback |
| The RX callback.
|
Callback< void, Ipv6Address,
uint8_t, uint8_t, uint8_t,
uint32_t > | m_icmpCallback |
| The ICMPv6 callback.
|
Callback< void > | m_destroyCallback |
| The destroy callback.
|
Detailed Description
An IPv6 end point, four tuples identification.
Constructor & Destructor Documentation
ns3::Ipv6EndPoint::Ipv6EndPoint |
( |
Ipv6Address |
addr, |
|
|
uint16_t |
port | |
|
) |
| | |
Constructor.
- Parameters:
-
| addr | the IPv6 address |
| port | the port |
Member Function Documentation
void ns3::Ipv6EndPoint::DoForwardIcmp |
( |
Ipv6Address |
src, |
|
|
uint8_t |
ttl, |
|
|
uint8_t |
type, |
|
|
uint8_t |
code, |
|
|
uint32_t |
info | |
|
) |
| | [private] |
ForwardIcmp wrapper.
- Parameters:
-
| src | source IPv6 address |
| ttl | time-to-live |
| type | ICMPv6 type |
| code | ICMPv6 code |
| info | ICMPv6 info |
void ns3::Ipv6EndPoint::DoForwardUp |
( |
Ptr< Packet > |
p, |
|
|
Ipv6Address |
saddr, |
|
|
uint16_t |
sport | |
|
) |
| | [private] |
ForwardUp wrapper.
- Parameters:
-
| p | packet |
| saddr | source IPv6 address |
| sport | source port |
void ns3::Ipv6EndPoint::ForwardIcmp |
( |
Ipv6Address |
src, |
|
|
uint8_t |
ttl, |
|
|
uint8_t |
type, |
|
|
uint8_t |
code, |
|
|
uint32_t |
info | |
|
) |
| | |
Function called from an L4Protocol implementation to notify an endpoint of an icmp message reception.
- Parameters:
-
| src | source IPv6 address |
| ttl | time-to-live |
| type | ICMPv6 type |
| code | ICMPv6 code |
| info | ICMPv6 info |
Forward the packet to the upper level.
- Parameters:
-
| p | the packet |
| addr | source address |
| port | source port |
Get the local address.
- Returns:
- the local address
uint16_t ns3::Ipv6EndPoint::GetLocalPort |
( |
|
) |
|
Get the local port.
- Returns:
- the local port
Get the peer address.
- Returns:
- the peer address
uint16_t ns3::Ipv6EndPoint::GetPeerPort |
( |
|
) |
|
Get the peer port.
- Returns:
- the peer port
void ns3::Ipv6EndPoint::SetDestroyCallback |
( |
Callback< void > |
callback |
) |
|
Set the default destroy callback.
- Parameters:
-
| callback | callback function |
void ns3::Ipv6EndPoint::SetIcmpCallback |
( |
Callback< void, Ipv6Address, uint8_t, uint8_t, uint8_t, uint32_t > |
callback |
) |
|
Set the ICMP callback.
- Parameters:
-
| callback | callback function |
void ns3::Ipv6EndPoint::SetLocalAddress |
( |
Ipv6Address |
addr |
) |
|
Set the local address.
- Parameters:
-
void ns3::Ipv6EndPoint::SetLocalPort |
( |
uint16_t |
port |
) |
|
Set the local port.
- Parameters:
-
void ns3::Ipv6EndPoint::SetPeer |
( |
Ipv6Address |
addr, |
|
|
uint16_t |
port | |
|
) |
| | |
Set the peer informations (address and port).
- Parameters:
-
| addr | peer address |
| port | peer port |
Set the reception callback.
- Parameters:
-
| callback | callback function |
The documentation for this class was generated from the following file:
- src/internet-stack/ipv6-end-point.h