Revised OpenFlow Library  v0.6.0dev
 All Classes Files Functions Variables Friends Groups Pages
Classes | Public Member Functions | Public Attributes | Friends | List of all members
rofl::gtpuext_pdcp_pdu_number Class Reference

#include <gtpuext.h>

Classes

struct  gtpu_pdcp_pdu_number_ext_hdr_t
 

Public Member Functions

 gtpuext_pdcp_pdu_number (uint16_t pdcp_pdu_number=0)
 
 gtpuext_pdcp_pdu_number (gtpuext const &ext)
 
gtpuext_pdcp_pdu_numberoperator= (gtpuext const &ext)
 
 gtpuext_pdcp_pdu_number (uint8_t *buf, size_t buflen)
 
uint16_t get_pdcp_pdu_number () const
 
void set_pdcp_pdu_number (uint16_t pdcp_pdu_number)
 
- Public Member Functions inherited from rofl::gtpuext
 gtpuext (size_t extlen=0)
 
 gtpuext (gtpuext const &ext)
 
gtpuextoperator= (gtpuext const &ext)
 
 gtpuext (uint8_t *buf, size_t buflen)
 
virtual void pack (uint8_t *buf, size_t buflen)
 Copies content of this cmemory instance to specified buffer.
 
virtual void unpack (uint8_t *buf, size_t buflen)
 Copies content of specified buffer into this cmemory instance .
 
virtual size_t get_length () const
 
virtual void set_length (size_t len)
 
virtual uint8_t get_next_hdr_type () const
 
virtual void set_next_hdr_type (uint8_t type)
 
- Public Member Functions inherited from rofl::cmemory
 cmemory (size_t len=CMEMORY_DEFAULT_SIZE)
 Constructor. Allocates a new memory area with specified size (default: 1024 bytes). More...
 
 cmemory (uint8_t *data, size_t datalen)
 Constructor. Allocates a new memory area and clones specified buffer. More...
 
 cmemory (cmemory const &m)
 Copy constructor. More...
 
virtual ~cmemory ()
 Destructor. Calls C-function free() for allocated memory area.
 
cmemoryoperator= (cmemory const &m)
 Assignment operator. More...
 
uint8_t & operator[] (size_t index) const
 Index operator. More...
 
bool operator== (cmemory const &m) const
 Comparison operator. More...
 
bool operator!= (cmemory const &m) const
 Comparison operator (unequal). More...
 
bool operator< (cmemory const &m) const
 Less than operator. More...
 
bool operator> (cmemory const &m) const
 Less than operator. More...
 
cmemory operator& (cmemory const &m) const
 AND operator. More...
 
cmemoryoperator+= (cmemory const &m)
 Append operator with assignment to this cmemory instance. More...
 
cmemory operator+ (cmemory const &m)
 Append operator with assignment to temporary cmemory instance. More...
 
uint8_t * somem () const
 Returns pointer to start of allocated memory area.
 
size_t memlen () const
 Returns length of allocated memory area.
 
virtual void assign (uint8_t *buf, size_t buflen)
 Overwrites memory area with plain buffer specified. Resizes internal memory as necessary. More...
 
virtual size_t length () const
 
virtual uint8_t * resize (size_t len)
 Resizes allocated memory area by calling C-function realloc(). More...
 
uint8_t * insert (uint8_t *ptr, size_t len)
 Inserts len bytes at pointer ptr into allocated memory area. More...
 
uint8_t * insert (unsigned int offset, size_t len)
 Inserts len bytes at start of allocated memory area plus offset. More...
 
void remove (uint8_t *ptr, size_t len)
 Removes len bytes starting at pointer ptr from allocated memory area. More...
 
void remove (unsigned int offset, size_t len)
 Removes len bytes starting at offset relative to the allocated memory area. More...
 
unsigned int find_first_of (uint8_t value, unsigned int start)
 Returns index of first byte with value "value" found in allocated memory area starting at offset "start". More...
 
void clear ()
 Clears the allocated memory area by setting all bytes to 0.
 
virtual std::string toString () const
 map onto std::string instance
 
virtual bool empty () const
 Returns boolean value empty/non empty.
 

Public Attributes

struct
gtpu_pdcp_pdu_number_ext_hdr_t
pdcp_pdu_number_exthdr
 
- Public Attributes inherited from rofl::gtpuext
struct gtpu_ext_hdr_texthdr
 

Friends

std::ostream & operator<< (std::ostream &os, gtpuext_pdcp_pdu_number const &ext)
 

Additional Inherited Members

- Public Types inherited from rofl::gtpuext
enum  gtpu_ext_type_t { GTPU_EXT_NO_MORE_EXTS = 0, GTPU_EXT_SVC_CLASS_INDICATOR = 32, GTPU_EXT_UDP_PORT = 64, GTPU_EXT_PDCP_PDU_NUMBER = 192 }
 

Detailed Description

GTP extension: UDP port

Inheritance diagram for rofl::gtpuext_pdcp_pdu_number:
rofl::gtpuext rofl::cmemory

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