14 #include <rofl/common/logging.h>
15 #include <rofl/common/cmemory.h>
19 namespace experimental {
23 GRE_EXP_ID = 0x5555a784,
26 enum gre_action_type_t {
35 } __attribute__((packed));
41 } __attribute__((packed));
47 } __attribute__((packed));
61 set_exp_type(exptype);
112 get_exp_type()
const {
122 set_exp_type(uint16_t exptype) {
132 get_exp_len()
const {
142 set_exp_len(uint16_t explen) {
152 os <<
rofl::indent(0) <<
"<cofaction_exp_body_gre exp-type: 0x" <<
153 std::hex << (
unsigned int)body.get_exp_type() << std::dec
156 os << dynamic_cast<const rofl::cmemory&>( body );
170 uint16_t ethertype = 0) :
174 set_ether_type(ethertype);
224 get_ether_type()
const {
234 set_ether_type(uint16_t ethertype) {
244 os <<
rofl::indent(0) <<
"<cofaction_push_gre ether-type: 0x" <<
245 std::hex << (
unsigned int)action.get_ether_type() << std::dec
248 os << dynamic_cast<const rofl::cmemory&>( action );
264 uint16_t ethertype = 0) :
268 set_ether_type(ethertype);
318 get_ether_type()
const {
328 set_ether_type(uint16_t ethertype) {
338 os <<
rofl::indent(0) <<
"<cofaction_pop_gre ether-type: 0x" <<
339 std::hex << (
unsigned int)action.get_ether_type() << std::dec
342 os << dynamic_cast<const rofl::cmemory&>( action );
Definition: gre_actions.h:43
Definition: gre_actions.h:37
Definition: gre_actions.h:31
size_t memlen() const
Returns length of allocated memory area.
Definition: cmemory.cc:109
uint8_t * somem() const
Returns pointer to start of allocated memory area.
Definition: cmemory.cc:101
Definition: croflexception.h:65
Definition: gre_actions.h:163
Definition: gre_actions.h:257
C++ abstraction for malloc'ed memory areas.
Definition: cmemory.h:44
cmemory & operator=(cmemory const &m)
Assignment operator.
Definition: cmemory.cc:85
Definition: gre_actions.h:51