TunnelEncapsulationTrailer Class Reference

#include <TunnelEncaps.hh>


Public Member Functions

CookiesrcCookie ()
CookiedstCookie ()
u_int32_t & address ()
Portport ()
u_int8_t & ttl ()
u_int8_t & command ()
u_int32_t & auxAddress ()

Private Member Functions

char * byteOffset (int charIndex)


Detailed Description

Definition at line 30 of file TunnelEncaps.hh.


Member Function Documentation

Cookie& TunnelEncapsulationTrailer::srcCookie (  )  [inline]

Definition at line 44 of file TunnelEncaps.hh.

References byteOffset().

00045                 { return *(Cookie*)byteOffset(0); }

Cookie& TunnelEncapsulationTrailer::dstCookie (  )  [inline]

Definition at line 46 of file TunnelEncaps.hh.

References byteOffset().

00047                 { return *(Cookie*)byteOffset(2); }

u_int32_t& TunnelEncapsulationTrailer::address (  )  [inline]

Definition at line 48 of file TunnelEncaps.hh.

References byteOffset().

00049                 { return *(u_int32_t*)byteOffset(4); }

Port& TunnelEncapsulationTrailer::port (  )  [inline]

Definition at line 50 of file TunnelEncaps.hh.

References byteOffset().

00051                 { return *(Port*)byteOffset(8); }

u_int8_t& TunnelEncapsulationTrailer::ttl (  )  [inline]

Definition at line 52 of file TunnelEncaps.hh.

References byteOffset().

00053                 { return *(u_int8_t*)byteOffset(10); }

u_int8_t& TunnelEncapsulationTrailer::command (  )  [inline]

Definition at line 54 of file TunnelEncaps.hh.

References byteOffset().

00055                 { return *(u_int8_t*)byteOffset(11); }

u_int32_t& TunnelEncapsulationTrailer::auxAddress (  )  [inline]

Definition at line 57 of file TunnelEncaps.hh.

References byteOffset().

00058                 { return *(u_int32_t*)byteOffset(-4); }

char* TunnelEncapsulationTrailer::byteOffset ( int  charIndex  )  [inline, private]

Definition at line 61 of file TunnelEncaps.hh.

Referenced by address(), auxAddress(), command(), dstCookie(), port(), srcCookie(), and ttl().

00062                 { return ((char*)this) + charIndex; }


The documentation for this class was generated from the following file:
Generated on Wed Nov 12 10:54:00 2014 for live by  doxygen 1.5.2