8 #ifndef COFMSG_PORT_MOD_H_
9 #define COFMSG_PORT_MOD_H_ 1
11 #include "rofl/common/openflow/messages/cofmsg.h"
12 #include "rofl/common/caddress.h"
26 uint8_t* ofhu_port_mod;
32 #define ofh_port_mod ofhu.ofhu_port_mod
33 #define ofh10_port_mod ofhu.ofhu10_port_mod
34 #define ofh12_port_mod ofhu.ofhu12_port_mod
35 #define ofh13_port_mod ofhu.ofhu13_port_mod
44 uint8_t of_version = 0,
50 uint32_t advertise = 0);
106 pack(uint8_t *buf = (uint8_t*)0,
size_t buflen = 0);
113 unpack(uint8_t *buf,
size_t buflen);
135 set_port_no(uint32_t port_no);
159 set_config(uint32_t config);
171 set_mask(uint32_t mask);
177 get_advertise()
const;
183 set_advertise(uint32_t advertise);
189 os << dynamic_cast<cofmsg const&>( msg );
190 os <<
indent(2) <<
"<cofmsg_port_mod >" << std::endl;
191 os <<
indent(2) <<
"<port-no:" << (int)msg.get_port_no() <<
" >" << std::endl;
192 os <<
indent(2) <<
"<hw-addr:" << msg.get_hwaddr() <<
" >" << std::endl;
193 os <<
indent(2) <<
"<config:" << std::hex << (int)msg.get_config() << std::dec <<
" >" << std::endl;
194 os <<
indent(2) <<
"<mask:" << std::hex << (int)msg.get_mask() << std::dec <<
" >" << std::endl;
195 os <<
indent(2) <<
"<advertise:" << std::hex << (int)msg.get_advertise() << std::dec <<
" >" << std::endl;
Definition: caddress.h:152
virtual void pack(uint8_t *buf=(uint8_t *) 0, size_t buflen=0)
Definition: cofmsg_port_mod.cc:136
virtual size_t length() const
Definition: cofmsg_port_mod.cc:115
virtual void unpack(uint8_t *buf, size_t buflen)
Definition: cofmsg_port_mod.cc:170
virtual ~cofmsg_port_mod()
Definition: cofmsg_port_mod.cc:91
Definition: cofmsg_port_mod.h:20
Definition: openflow10.h:300
Definition: openflow13.h:905
virtual void validate()
Definition: cofmsg_port_mod.cc:180
C++ abstraction for malloc'ed memory areas.
Definition: cmemory.h:44
cofmsg_port_mod(uint8_t of_version=0, uint32_t xid=0, uint32_t port_no=0, cmacaddr const &hwaddr=cmacaddr("00:00:00:00:00:00"), uint32_t config=0, uint32_t mask=0, uint32_t advertise=0)
Definition: cofmsg_port_mod.cc:5
Definition: openflow12.h:350
virtual void reset()
Definition: cofmsg_port_mod.cc:99