8 #ifndef COFMSG_PACKET_OUT_H_
9 #define COFMSG_PACKET_OUT_H_ 1
11 #include "rofl/common/openflow/messages/cofmsg.h"
12 #include "rofl/common/openflow/cofactions.h"
13 #include "rofl/common/cpacket.h"
30 uint8_t* ofhu_packet_out;
36 #define ofh_packet_out ofhu.ofhu_packet_out
37 #define ofh10_packet_out ofhu.ofhu10_packet_out
38 #define ofh12_packet_out ofhu.ofhu12_packet_out
39 #define ofh13_packet_out ofhu.ofhu13_packet_out
48 uint8_t of_version = 0,
50 uint32_t buffer_id = 0,
53 uint8_t *data = (uint8_t*)0,
110 pack(uint8_t *buf = (uint8_t*)0,
size_t buflen = 0);
117 unpack(uint8_t *buf,
size_t buflen);
133 get_buffer_id()
const;
139 set_buffer_id(uint32_t buffer_id);
151 set_in_port(uint32_t in_port);
181 os << dynamic_cast<cofmsg const&>( msg );
182 os <<
indent(0) <<
"<cofmsg_packet_out >" << std::endl;
184 os <<
indent(2) <<
"<buffer-id: 0x" << (
unsigned int)msg.get_buffer_id() <<
" >" << std::endl;
185 os <<
indent(2) <<
"<in-port: 0x" << (
unsigned int)msg.get_in_port() <<
" >" << std::endl;
187 os <<
indent(2) << msg.actions;
188 os <<
indent(2) << msg.packet;
virtual void reset()
Definition: cofmsg_packet_out.cc:106
virtual size_t length() const
Definition: cofmsg_packet_out.cc:124
Definition: cofactions.h:22
virtual void pack(uint8_t *buf=(uint8_t *) 0, size_t buflen=0)
Definition: cofmsg_packet_out.cc:144
virtual ~cofmsg_packet_out()
Definition: cofmsg_packet_out.cc:98
cofmsg_packet_out(uint8_t of_version=0, uint32_t xid=0, uint32_t buffer_id=0, uint32_t in_port=0, cofactions const &actions=cofactions(), uint8_t *data=(uint8_t *) 0, size_t datalen=0)
Definition: cofmsg_packet_out.cc:5
Definition: openflow13.h:1616
Definition: openflow12.h:749
Definition: cofmsg_packet_out.h:21
C++ abstraction for malloc'ed memory areas.
Definition: cmemory.h:44
Definition: openflow10.h:476
virtual void validate()
Definition: cofmsg_packet_out.cc:202
virtual void unpack(uint8_t *buf, size_t buflen)
Definition: cofmsg_packet_out.cc:192