INET Framework for OMNeT++/OMNEST
inet::Ipv6Tunneling::Tunnel Struct Reference

#include <Ipv6Tunneling.h>

Public Member Functions

 Tunnel (const Ipv6Address &entry=Ipv6Address::UNSPECIFIED_ADDRESS, const Ipv6Address &exit=Ipv6Address::UNSPECIFIED_ADDRESS, const Ipv6Address &destTrigger=Ipv6Address::UNSPECIFIED_ADDRESS)
 
bool operator== (const Tunnel &rhs)
 

Public Attributes

Ipv6Address entry
 
Ipv6Address exit
 
int hopLimit = 0
 
int trafficClass = 0
 
int flowLabel = 0
 
int tunnelMTU = 0
 
TunnelType tunnelType = INVALID
 Specifies the type of the tunnel. More...
 
Ipv6Address destTrigger
 
bool isTriggerPrefix = false
 

Constructor & Destructor Documentation

◆ Tunnel()

inet::Ipv6Tunneling::Tunnel::Tunnel ( const Ipv6Address entry = Ipv6Address::UNSPECIFIED_ADDRESS,
const Ipv6Address exit = Ipv6Address::UNSPECIFIED_ADDRESS,
const Ipv6Address destTrigger = Ipv6Address::UNSPECIFIED_ADDRESS 
)
94  : entry(_entry), exit(_exit), tunnelMTU(IPv6_MIN_MTU - 40), tunnelType(SPLIT), destTrigger(_destTrigger)
95 {
96 }

Member Function Documentation

◆ operator==()

bool inet::Ipv6Tunneling::Tunnel::operator== ( const Tunnel rhs)
inline
61  {
62  return entry == rhs.entry && exit == rhs.exit && destTrigger == rhs.destTrigger;
63  }

Member Data Documentation

◆ destTrigger

Ipv6Address inet::Ipv6Tunneling::Tunnel::destTrigger

Referenced by inet::operator<<(), and operator==().

◆ entry

Ipv6Address inet::Ipv6Tunneling::Tunnel::entry

Referenced by inet::operator<<(), and operator==().

◆ exit

Ipv6Address inet::Ipv6Tunneling::Tunnel::exit

Referenced by inet::operator<<(), and operator==().

◆ flowLabel

int inet::Ipv6Tunneling::Tunnel::flowLabel = 0

◆ hopLimit

int inet::Ipv6Tunneling::Tunnel::hopLimit = 0

◆ isTriggerPrefix

bool inet::Ipv6Tunneling::Tunnel::isTriggerPrefix = false

◆ trafficClass

int inet::Ipv6Tunneling::Tunnel::trafficClass = 0

◆ tunnelMTU

int inet::Ipv6Tunneling::Tunnel::tunnelMTU = 0

Referenced by inet::operator<<().

◆ tunnelType

TunnelType inet::Ipv6Tunneling::Tunnel::tunnelType = INVALID

Specifies the type of the tunnel.

  • split tunnel
  • non-split tunnel
  • type 2 routing header pseudo tunnel for communication with MNs (RFC 3775)
  • home address option header pseudo tunnel for communication with CNs (RFC 3775)

Referenced by inet::operator<<().


The documentation for this struct was generated from the following files:
inet::Ipv6Tunneling::SPLIT
@ SPLIT
Definition: Ipv6Tunneling.h:42
inet::Ipv6Tunneling::Tunnel::entry
Ipv6Address entry
Definition: Ipv6Tunneling.h:66
inet::Ipv6Tunneling::Tunnel::tunnelMTU
int tunnelMTU
Definition: Ipv6Tunneling.h:81
inet::Ipv6Tunneling::Tunnel::destTrigger
Ipv6Address destTrigger
Definition: Ipv6Tunneling.h:96
inet::Ipv6Tunneling::Tunnel::tunnelType
TunnelType tunnelType
Specifies the type of the tunnel.
Definition: Ipv6Tunneling.h:90
IPv6_MIN_MTU
#define IPv6_MIN_MTU
Definition: Ipv6InterfaceData.h:31
inet::Ipv6Tunneling::Tunnel::exit
Ipv6Address exit
Definition: Ipv6Tunneling.h:69