summaryrefslogtreecommitdiffstats
path: root/src/flow_stat.cpp
diff options
context:
space:
mode:
authorIdo Barnea <ibarnea@cisco.com>2016-07-20 10:19:11 +0300
committerIdo Barnea <ibarnea@cisco.com>2016-08-03 16:35:11 +0300
commit810dd7d0a48c17679e385b93d595a92b51254ce4 (patch)
tree09f9ca6ddd2358c688c2ba41b4297d39928eea2f /src/flow_stat.cpp
parent0f863b48e742ecd6b6dd522803e95a528024bbc9 (diff)
ipv6 flow stat on vm working
Diffstat (limited to 'src/flow_stat.cpp')
-rw-r--r--src/flow_stat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flow_stat.cpp b/src/flow_stat.cpp
index 8c2f2566..a9451e17 100644
--- a/src/flow_stat.cpp
+++ b/src/flow_stat.cpp
@@ -63,7 +63,7 @@ stream_del: HW_ID_INIT
static const uint16_t HW_ID_INIT = UINT16_MAX;
static const uint16_t HW_ID_FREE = UINT16_MAX - 1;
static const uint8_t PAYLOAD_RULE_PROTO = 255;
-const uint16_t FLOW_STAT_PAYLOAD_IP_ID = IP_ID_RESERVE_BASE + MAX_FLOW_STATS;
+const uint32_t FLOW_STAT_PAYLOAD_IP_ID = IP_ID_RESERVE_BASE + MAX_FLOW_STATS;
inline std::string methodName(const std::string& prettyFunction)
{
@@ -691,7 +691,7 @@ int CFlowStatRuleMgr::start_stream(TrexStream * stream) {
return 0;
}
- uint16_t ip_id;
+ uint32_t ip_id;
if (m_parser->get_ip_id(ip_id) < 0) {
return 0; // if we could not find the ip id, no need to fix
}