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

Public Member Functions

 cofmsg_flow_removed (uint8_t of_version=0, uint32_t xid=0, uint64_t cookie=0, uint16_t priority=0, uint8_t reason=0, uint8_t table_id=0, uint32_t duration_sec=0, uint32_t duration_nsec=0, uint16_t idle_timeout=0, uint16_t hard_timeout=0, uint64_t packet_count=0, uint64_t byte_count=0, cofmatch const &match=cofmatch())
 
 cofmsg_flow_removed (cofmsg_flow_removed const &flow_removed)
 
cofmsg_flow_removedoperator= (cofmsg_flow_removed const &flow_removed)
 
virtual ~cofmsg_flow_removed ()
 
 cofmsg_flow_removed (cmemory *memarea)
 
virtual void reset ()
 
virtual uint8_t * resize (size_t len)
 
virtual size_t length () const
 
virtual void pack (uint8_t *buf=(uint8_t *) 0, size_t buflen=0)
 
virtual void unpack (uint8_t *buf, size_t buflen)
 
virtual void validate ()
 
uint64_t get_cookie () const
 
void set_cookie (uint64_t cookie)
 
uint16_t get_priority () const
 
void set_priority (uint64_t priority)
 
uint8_t get_reason () const
 
void set_reason (uint8_t reason)
 
uint8_t get_table_id () const
 
void set_table_id (uint8_t table_id)
 
uint32_t get_duration_sec () const
 
void set_duration_sec (uint32_t duration_sec)
 
uint32_t get_duration_nsec () const
 
void set_duration_nsec (uint32_t duration_nsec)
 
uint16_t get_idle_timeout () const
 
void set_idle_timeout (uint16_t idle_timeout)
 
uint16_t get_hard_timeout () const
 
void set_hard_timeout (uint16_t hard_timeout)
 
uint64_t get_packet_count () const
 
void set_packet_count (uint64_t packet_count)
 
uint64_t get_byte_count () const
 
void set_byte_count (uint64_t byte_count)
 
cofmatchget_match ()
 
- Public Member Functions inherited from rofl::openflow::cofmsg
 cofmsg (uint8_t ofp_version, uint32_t xid, uint8_t type)
 
 cofmsg (size_t size=sizeof(struct openflow::ofp_header))
 
 cofmsg (cmemory *memarea)
 
 cofmsg (cofmsg const &p)
 
virtual ~cofmsg ()
 
cofmsgoperator= (cofmsg const &p)
 
uint8_t * soframe () const
 
size_t framelen () const
 
uint8_t * sobody () const
 
size_t bodylen () const
 
uint8_t get_version () const
 
virtual void set_version (uint8_t ofp_version)
 
uint16_t get_length () const
 
void set_length (uint16_t len)
 
uint8_t get_type () const
 
void set_type (uint8_t type)
 
uint32_t get_xid () const
 
void set_xid (uint32_t xid)
 
std::string str () const
 

Friends

std::ostream & operator<< (std::ostream &os, cofmsg_flow_removed const &msg)
 

Additional Inherited Members

- Static Public Member Functions inherited from rofl::openflow::cofmsg
static const char * packet_info (uint8_t ofp_version)
 
static const char * type2desc (uint8_t ofp_version, uint8_t type)
 
- Static Public Attributes inherited from rofl::openflow::cofmsg
static std::set< cofmsg * > cofpacket_list
 
- Protected Attributes inherited from rofl::openflow::cofmsg
cmemorymemarea
 
union {
   uint8_t *   ofhu_generic
 
   struct rofl::openflow::ofp_header *   ofhu_header
 
ofh_ofhu
 
Inheritance diagram for rofl::openflow::cofmsg_flow_removed:
rofl::openflow::cofmsg

Constructor & Destructor Documentation

cofmsg_flow_removed::cofmsg_flow_removed ( uint8_t  of_version = 0,
uint32_t  xid = 0,
uint64_t  cookie = 0,
uint16_t  priority = 0,
uint8_t  reason = 0,
uint8_t  table_id = 0,
uint32_t  duration_sec = 0,
uint32_t  duration_nsec = 0,
uint16_t  idle_timeout = 0,
uint16_t  hard_timeout = 0,
uint64_t  packet_count = 0,
uint64_t  byte_count = 0,
cofmatch const &  match = cofmatch() 
)

constructor

cofmsg_flow_removed::~cofmsg_flow_removed ( )
virtual

destructor

Member Function Documentation

size_t cofmsg_flow_removed::length ( ) const
virtual

returns length of packet in packed state

Reimplemented from rofl::openflow::cofmsg.

void cofmsg_flow_removed::pack ( uint8_t *  buf = (uint8_t*)0,
size_t  buflen = 0 
)
virtual

pack OFpacket content to specified buffer

Reimplemented from rofl::openflow::cofmsg.

void cofmsg_flow_removed::reset ( )
virtual

reset packet content

Reimplemented from rofl::openflow::cofmsg.

void cofmsg_flow_removed::unpack ( uint8_t *  buf,
size_t  buflen 
)
virtual

unpack OFpacket content from specified buffer

Reimplemented from rofl::openflow::cofmsg.

void cofmsg_flow_removed::validate ( )
virtual

parse packet and validate it

Reimplemented from rofl::openflow::cofmsg.


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