9 #define COFMSG_ROLE_H 1
11 #include "rofl/common/openflow/messages/cofmsg.h"
12 #include "rofl/common/openflow/cofrole.h"
32 uint8_t of_version = 0,
84 pack(uint8_t *buf = (uint8_t*)0,
size_t buflen = 0);
91 unpack(uint8_t *buf,
size_t buflen);
106 set_role() {
return role; };
112 get_role()
const {
return role; };
118 os << dynamic_cast<cofmsg const&>( msg );
119 os <<
indent(0) <<
"<cofmsg_role_request >" << std::endl;
143 uint8_t of_version = 0,
195 pack(uint8_t *buf = (uint8_t*)0,
size_t buflen = 0);
202 unpack(uint8_t *buf,
size_t buflen);
217 set_role() {
return role; };
223 get_role()
const {
return role; };
229 os << dynamic_cast<cofmsg const&>( msg );
230 os <<
indent(0) <<
"<cofmsg_role_reply >" << std::endl;
Definition: cofmsg_role.h:131
virtual void reset()
Definition: cofmsg_role.cc:264
virtual ~cofmsg_role_reply()
Definition: cofmsg_role.cc:256
virtual void pack(uint8_t *buf=(uint8_t *) 0, size_t buflen=0)
Definition: cofmsg_role.cc:103
virtual void pack(uint8_t *buf=(uint8_t *) 0, size_t buflen=0)
Definition: cofmsg_role.cc:291
virtual void unpack(uint8_t *buf, size_t buflen)
Definition: cofmsg_role.cc:134
virtual void validate()
Definition: cofmsg_role.cc:332
virtual void unpack(uint8_t *buf, size_t buflen)
Definition: cofmsg_role.cc:322
virtual size_t length() const
Definition: cofmsg_role.cc:85
cofmsg_role_reply(uint8_t of_version=0, uint32_t xid=0, rofl::openflow::cofrole const &role=rofl::openflow::cofrole())
Definition: cofmsg_role.cc:193
virtual void reset()
Definition: cofmsg_role.cc:76
cofmsg_role_request(uint8_t of_version=0, uint32_t xid=0, rofl::openflow::cofrole const &role=rofl::openflow::cofrole())
Definition: cofmsg_role.cc:5
Definition: cofmsg_role.h:20
C++ abstraction for malloc'ed memory areas.
Definition: cmemory.h:44
virtual void validate()
Definition: cofmsg_role.cc:144
virtual size_t length() const
Definition: cofmsg_role.cc:273
virtual ~cofmsg_role_request()
Definition: cofmsg_role.cc:68