14 #include <rofl/common/ciosrv.h>
15 #include <rofl/common/caddress.h>
16 #include <rofl/common/crofbase.h>
17 #include <rofl/common/crofdpt.h>
18 #include <rofl/common/logging.h>
19 #include <rofl/common/ctimerid.h>
25 namespace exceptions {
34 eFlowBase(
const std::string& __arg) : std::runtime_error(__arg) {};
158 uint32_t out_port_no);
196 void* data = (
void*)NULL);
205 os <<
rofl::indent(0) <<
"<cflowentry portno: " << (
unsigned int)entry.port_no <<
" >" << std::endl;
214 static const long CFLOWENTRY_DEFAULT_TIMEOUT = 60;
216 enum cflowentry_timer_t {
217 CFLOWENTRY_ENTRY_EXPIRED = 1,
Element not found.
Definition: cflowentry.h:54
Definition: caddress.h:152
Defines the environment expected by an instance of class cflowentry.
Definition: cflowentry.h:71
friend std::ostream & operator<<(std::ostream &os, const cflowentry &entry)
Output operator.
Definition: cflowentry.h:204
Timer handle used by class rofl::cioloop.
Definition: ctimerid.h:21
void set_out_port_no(uint32_t out_port_no)
Update port number stored for this flow.
Definition: cflowentry.cc:53
rofl-common's internal remote datapath handle.
Definition: cdptid.h:24
virtual ~cflowentry()
cflowentry destructor
Definition: cflowentry.cc:32
Invalid parameter specified.
Definition: cflowentry.h:43
Stores an active flow entry.
Definition: cflowentry.h:109
uint32_t get_out_port_no() const
Returns outgoing port number stored for this flow.
Definition: cflowentry.h:148
Base class for all exceptions thrown by class cflowtable.
Definition: cflowentry.h:32
const rofl::caddress_ll & get_dst() const
Returns ethernet hardware address identifying the destination host.
Definition: cflowentry.h:166
virtual ~cflowentry_env()
cflowentry_env destructor
Definition: cflowentry.h:79
Base class for IO services.
Definition: ciosrv.h:491
const rofl::caddress_ll & get_src() const
Returns ethernet hardware address identifying the source host.
Definition: cflowentry.h:175
cflowentry(cflowentry_env *flowenv, const rofl::cdptid &dptid, const rofl::caddress_ll &src, const rofl::caddress_ll &dst, uint32_t port_no)
cflowentry constructor
Definition: cflowentry.cc:12
virtual void flow_timer_expired(const cflowentry &entry)=0
Called once the timer for this flow entry has expired.