#include <fmplsframe.h>
|
| enum | mpls_ether_t { MPLS_ETHER = 0x8847,
MPLS_ETHER_UPSTREAM = 0x8848
} |
| |
|
|
struct rofl::fmplsframe::mpls_hdr_t | __attribute__ ((packed)) |
| |
| virtual void | reset (uint8_t *data, size_t datalen) |
| |
| | fmplsframe (uint8_t *data, size_t datalen) |
| |
| virtual | ~fmplsframe () |
| |
| virtual bool | complete () const |
| |
| virtual size_t | need_bytes () const |
| |
| virtual void | validate (uint16_t total_len=0) const |
| |
| virtual void | initialize () |
| |
| virtual void | payload_insert (uint8_t *data, size_t datalen) throw (eFrameOutOfRange) |
| |
| virtual uint8_t * | payload () const throw (eFrameNoPayload) |
| |
| virtual size_t | payloadlen () const throw (eFrameNoPayload) |
| |
|
void | set_mpls_label (uint32_t label) |
| |
|
uint32_t | get_mpls_label () const |
| |
|
void | set_mpls_tc (uint8_t tc) |
| |
|
uint8_t | get_mpls_tc () const |
| |
|
void | dec_mpls_ttl () |
| |
|
void | set_mpls_ttl (uint8_t ttl) |
| |
|
uint8_t | get_mpls_ttl () const |
| |
| void | set_mpls_bos (bool flag=true) |
| |
|
bool | get_mpls_bos () const |
| |
| | fframe (uint8_t *_data=NULL, size_t _datalen=0) |
| |
| | fframe (size_t len=DEFAULT_FFRAME_SIZE) |
| |
| virtual | ~fframe () |
| |
| | fframe (const fframe &frame) |
| |
| fframe & | operator= (const fframe &frame) |
| |
|
virtual uint8_t * | sopdu () const |
| | Returns pointer to begin of this PDU.
|
| |
|
virtual size_t | pdulen () const |
| | Returns length of this PDU.
|
| |
|
virtual uint8_t * | sosdu () const |
| | Returns pointer to begin of SDU encapsulated in this PDU (if any).
|
| |
| virtual uint8_t & | operator[] (size_t index) throw (eFrameOutOfRange) |
| |
| virtual uint8_t * | soframe () const |
| |
| virtual size_t | framelen () const |
| |
| bool | empty () const |
| |
| void | shift_left (size_t bytes) |
| |
| void | shift_right (size_t bytes) |
| |
|
|
std::ostream & | operator<< (std::ostream &os, fmplsframe const &frame) |
| |
| fmplsframe::fmplsframe |
( |
uint8_t * |
data, |
|
|
size_t |
datalen |
|
) |
| |
| fmplsframe::~fmplsframe |
( |
| ) |
|
|
virtual |
| bool fmplsframe::complete |
( |
| ) |
const |
|
virtual |
returns boolean value indicating completeness of the packet
Reimplemented from rofl::fframe.
| void fmplsframe::initialize |
( |
| ) |
|
|
virtual |
initialize (set eth_hdr, pppoe_hdr)
Reimplemented from rofl::fframe.
| size_t fmplsframe::need_bytes |
( |
| ) |
const |
|
virtual |
returns the number of bytes this packet expects from the socket next
Reimplemented from rofl::fframe.
| void fmplsframe::payload_insert |
( |
uint8_t * |
data, |
|
|
size_t |
datalen |
|
) |
| |
| throw | ( | eFrameOutOfRange |
| ) | | |
|
virtual |
| void fmplsframe::reset |
( |
uint8_t * |
data, |
|
|
size_t |
datalen |
|
) |
| |
|
virtual |
reset this frame to a new buffer pointing to at (data, datalen)
Reimplemented from rofl::fframe.
| void fmplsframe::set_mpls_bos |
( |
bool |
flag = true | ) |
|
| void fmplsframe::validate |
( |
uint16_t |
total_len = 0 | ) |
const |
|
virtual |
The documentation for this class was generated from the following files:
- /home/andreas/git/rofl-core/src/rofl/common/protocols/fmplsframe.h
- /home/andreas/git/rofl-core/src/rofl/common/protocols/fmplsframe.cc