INET Framework for OMNeT++/OMNEST
inet::InterfaceToken Class Reference

An "interface token" as defined in RFC 1971 (IPv6 Stateless Autoconfiguration). More...

#include <InterfaceToken.h>

Public Member Functions

 InterfaceToken ()
 
 InterfaceToken (uint32 low, uint32 normal, int len)
 
 InterfaceToken (const InterfaceToken &t)
 
InterfaceTokenoperator= (const InterfaceToken &t)
 
int length () const
 
uint32 low () const
 
uint32 normal () const
 

Private Member Functions

void copy (const InterfaceToken &t)
 

Private Attributes

uint32 _normal
 
uint32 _low
 
short _len
 

Detailed Description

An "interface token" as defined in RFC 1971 (IPv6 Stateless Autoconfiguration).

This class supports tokens of length 1..64-bits. An interface token needs to be provided by L2 modules in order to be able to form IPv6 link local addresses.

Constructor & Destructor Documentation

inet::InterfaceToken::InterfaceToken ( )
inline
41 { _normal = _low = _len = 0; }
uint32 _normal
Definition: InterfaceToken.h:34
short _len
Definition: InterfaceToken.h:35
uint32 _low
Definition: InterfaceToken.h:34
inet::InterfaceToken::InterfaceToken ( uint32  low,
uint32  normal,
int  len 
)
inline
42 { _normal = normal; _low = low; _len = len; }
uint32 _normal
Definition: InterfaceToken.h:34
short _len
Definition: InterfaceToken.h:35
uint16_t len
Definition: TCP_NSC.cc:85
uint32 _low
Definition: InterfaceToken.h:34
uint32 normal() const
Definition: InterfaceToken.h:47
uint32 low() const
Definition: InterfaceToken.h:46
inet::InterfaceToken::InterfaceToken ( const InterfaceToken t)
inline
43 { copy(t); }
void copy(const InterfaceToken &t)
Definition: InterfaceToken.h:38

Member Function Documentation

void inet::InterfaceToken::copy ( const InterfaceToken t)
inlineprivate
38 { _normal = t._normal; _low = t._low; _len = t._len; }
uint32 _normal
Definition: InterfaceToken.h:34
short _len
Definition: InterfaceToken.h:35
uint32 _low
Definition: InterfaceToken.h:34
int inet::InterfaceToken::length ( ) const
inline

Referenced by inet::IPv6Address::formLinkLocalAddress().

45 { return _len; }
short _len
Definition: InterfaceToken.h:35
uint32 inet::InterfaceToken::low ( ) const
inline

Referenced by inet::IPv6Address::formLinkLocalAddress().

46 { return _low; }
uint32 _low
Definition: InterfaceToken.h:34
uint32 inet::InterfaceToken::normal ( ) const
inline

Referenced by inet::IPv6Address::formLinkLocalAddress().

47 { return _normal; }
uint32 _normal
Definition: InterfaceToken.h:34
InterfaceToken& inet::InterfaceToken::operator= ( const InterfaceToken t)
inline
44 { copy(t); return *this; }
void copy(const InterfaceToken &t)
Definition: InterfaceToken.h:38

Member Data Documentation

short inet::InterfaceToken::_len
private

Referenced by copy().

uint32 inet::InterfaceToken::_low
private

Referenced by copy().

uint32 inet::InterfaceToken::_normal
private

Referenced by copy().


The documentation for this class was generated from the following file: