InterfaceToken Class Reference

#include <InterfaceToken.h>

List of all members.


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.

Public Member Functions

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

Private Attributes

uint32 _normal
uint32 _low
short _len

Constructor & Destructor Documentation

InterfaceToken::InterfaceToken (  )  [inline]

00037 {_normal=_low=_len=0;}

InterfaceToken::InterfaceToken ( uint32  low,
uint32  normal,
int  len 
) [inline]

00038 {_normal=normal; _low=low; _len=len;}

InterfaceToken::InterfaceToken ( const InterfaceToken t  )  [inline]

00039 {operator=(t);}


Member Function Documentation

void InterfaceToken::operator= ( const InterfaceToken t  )  [inline]

00040 {_normal=t._normal; _low=t._low; _len=t._len;}

int InterfaceToken::length (  )  const [inline]

Referenced by IPv6Address::formLinkLocalAddress().

00041 {return _len;}

uint32 InterfaceToken::low (  )  const [inline]

Referenced by IPv6Address::formLinkLocalAddress().

00042 {return _low;}

uint32 InterfaceToken::normal (  )  const [inline]

Referenced by IPv6Address::formLinkLocalAddress().

00043 {return _normal;}


Member Data Documentation

uint32 InterfaceToken::_normal [private]

Referenced by operator=().

uint32 InterfaceToken::_low [private]

Referenced by operator=().

short InterfaceToken::_len [private]

Referenced by operator=().


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

Generated on Fri Mar 20 18:51:19 2009 for INET Framework for OMNeT++/OMNEST by  doxygen 1.5.5