bool FlowHAState::is_critical()
{
- return ((state & CRITICAL) != 0);
+ return ((state & critical) != 0);
}
bool FlowHAState::is_major()
{
- return ((state & MAJOR) != 0);
+ return ((state & major) != 0);
}
void FlowHAState::config_lifetime(struct timeval min_lifetime)
HA_UPDATE_EVENT = 2
};
+enum HAEvent
+{
+ ha_delete_event = 1,
+ ha_update_event = 2
+};
+
// Each active flow will have an associated FlowHAState instance.
class FlowHAState
{
public:
- static const uint8_t CRITICAL = 0x20;
- static const uint8_t MAJOR = 0x10;
+ static const uint8_t critical = 0x20;
+ static const uint8_t major = 0x10;
static const uint8_t CREATED = 0x01;
static const uint8_t MODIFIED = 0x02;
config.ports = new PortBitSet;
v.get_bits(*(config.ports) );
}
-
else
return false;
SUBDIRS = test
endif
+if BUILD_UNIT_TESTS
+SUBDIRS = test
+endif
+
#define UDP_SESSION_H
#include <sys/time.h>
-#include "flow/ha.h"
#include "flow/session.h"
-class UdpHAClient : public FlowHAClient
-{
-};
-
class UdpSession : public Session
{
public: