Revised OpenFlow Library  v0.6.0dev
 All Classes Files Functions Variables Friends Groups Pages
Public Member Functions | Friends | List of all members
rofl::openflow::cofports Class Reference

Public Member Functions

 cofports (uint8_t ofp_version=openflow::OFP_VERSION_UNKNOWN)
 
 cofports (uint8_t ofp_version, uint8_t *buf, size_t buflen)
 
 cofports (cofports const &ports)
 
cofportsoperator= (cofports const &ports)
 
cofportsoperator+= (cofports const &ports)
 
void clear ()
 
void unpack (uint8_t *buf, size_t buflen)
 
void pack (uint8_t *buf, size_t buflen)
 
size_t length () const
 
uint8_t get_version () const
 
void set_version (uint8_t ofp_version)
 
std::map< uint32_t, cofport * > & set_ports ()
 
std::map< uint32_t, cofport * >
const & 
get_ports () const
 
cofportadd_port (uint32_t portno)
 
cofportset_port (uint32_t portno)
 
cofportset_port (const std::string &devname)
 
cofportset_port (const rofl::caddress_ll &hwaddr)
 
cofport const & get_port (uint32_t portno) const
 
cofport const & get_port (const std::string &devname) const
 
cofport const & get_port (const rofl::caddress_ll &hwaddr) const
 
void drop_port (uint32_t portno)
 
void drop_port (const std::string &devname)
 
void drop_port (const rofl::caddress_ll &hwaddr)
 
bool has_port (uint32_t portno) const
 
bool has_port (const std::string &devname) const
 
bool has_port (const rofl::caddress_ll &hwaddr) const
 

Friends

std::ostream & operator<< (std::ostream &os, cofports const &ports)
 

Member Function Documentation

size_t cofports::length ( ) const

returns required length for array of struct ofp_instruction for all instructions defined in this->invec


The documentation for this class was generated from the following files: