All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
TIPAddr Struct Reference

Struct contains an IPV4 or an IPV6 address. More...

#include <packet-defines.h>

Collaboration diagram for TIPAddr:
Collaboration graph

Public Member Functions

 TIPAddr ()
 
 TIPAddr (uint32_t ui32Ip)
 
 TIPAddr (uint64_t ui64Ip1, uint64_t ui64Ip2)
 
void operator= (const uint32_t &ulIp)
 
void operator= (const TIPAddr &T)
 
bool operator== (const TIPAddr &T) const
 
bool operator!= (const TIPAddr &T) const
 
TIPAddr operator& (const TIPAddr &T) const
 
bool IsZero (void) const
 
bool IsMappedAddress (void) const
 
TIPAddr GetIpv6MappedAddress (void) const
 

Public Attributes

union {
   uint64_t   ui64addr [2]
 IPV6 address as a 2 x 64 bit value. More...
 
   uint32_t   ui32addr [4]
 IPV6 address as a 4 x 32 bit value. More...
 
   uint16_t   ui16addr [8]
 IPV6 address as a 8 x 16 bit value. More...
 
   uint8_t   ui8addr [16]
 IPV6 address as a 16 x 8 bit value. More...
 
   struct {
      uint32_t   ui32Dummy [3]
 
      uint32_t   ui32IPV4Addr
 IPV4 address. More...
 
   } 
 
}; 
 

Detailed Description

Struct contains an IPV4 or an IPV6 address.

Definition at line 7 of file packet-defines.h.

Constructor & Destructor Documentation

TIPAddr::TIPAddr ( )
inline

Definition at line 24 of file packet-defines.h.

TIPAddr::TIPAddr ( uint32_t  ui32Ip)
inline

Definition at line 26 of file packet-defines.h.

TIPAddr::TIPAddr ( uint64_t  ui64Ip1,
uint64_t  ui64Ip2 
)
inline

Definition at line 38 of file packet-defines.h.

Member Function Documentation

TIPAddr TIPAddr::GetIpv6MappedAddress ( void  ) const
inline

Definition at line 96 of file packet-defines.h.

bool TIPAddr::IsMappedAddress ( void  ) const
inline

Definition at line 91 of file packet-defines.h.

bool TIPAddr::IsZero ( void  ) const
inline

Definition at line 82 of file packet-defines.h.

bool TIPAddr::operator!= ( const TIPAddr T) const
inline

Definition at line 69 of file packet-defines.h.

TIPAddr TIPAddr::operator& ( const TIPAddr T) const
inline

Definition at line 74 of file packet-defines.h.

void TIPAddr::operator= ( const uint32_t ulIp)
inline

Definition at line 45 of file packet-defines.h.

void TIPAddr::operator= ( const TIPAddr T)
inline

Definition at line 58 of file packet-defines.h.

bool TIPAddr::operator== ( const TIPAddr T) const
inline

Definition at line 64 of file packet-defines.h.

Member Data Documentation

union { ... }
uint16_t TIPAddr::ui16addr[8]

IPV6 address as a 8 x 16 bit value.

Definition at line 13 of file packet-defines.h.

uint32_t TIPAddr::ui32addr[4]

IPV6 address as a 4 x 32 bit value.

Definition at line 12 of file packet-defines.h.

uint32_t TIPAddr::ui32Dummy[3]

Definition at line 17 of file packet-defines.h.

uint32_t TIPAddr::ui32IPV4Addr

IPV4 address.

Definition at line 18 of file packet-defines.h.

uint64_t TIPAddr::ui64addr[2]

IPV6 address as a 2 x 64 bit value.

Definition at line 11 of file packet-defines.h.

uint8_t TIPAddr::ui8addr[16]

IPV6 address as a 16 x 8 bit value.

Definition at line 14 of file packet-defines.h.


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