diff options
author | Ido Barnea <ibarnea@cisco.com> | 2016-04-14 13:06:04 +0300 |
---|---|---|
committer | Ido Barnea <ibarnea@cisco.com> | 2016-04-14 13:06:04 +0300 |
commit | e0720b15ec9dc695a8c1799e87cbe41a670cb616 (patch) | |
tree | 2d74a2195e6f8df326e90bf585990d019e9cc90b /src/flow_stat_parser.h | |
parent | 4d311b49e0c283f5cd8b27d00482eb08bd18c201 (diff) |
Support for flow stat for vlan packets on 82599 card using --vlan option
Diffstat (limited to 'src/flow_stat_parser.h')
-rw-r--r-- | src/flow_stat_parser.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/flow_stat_parser.h b/src/flow_stat_parser.h index 0c0655ee..b4f01900 100644 --- a/src/flow_stat_parser.h +++ b/src/flow_stat_parser.h @@ -27,10 +27,10 @@ class CFlowStatParser { public: - virtual ~CFlowStatParser() {}; + virtual ~CFlowStatParser() {} virtual void reset(); virtual int parse(uint8_t *pkt, uint16_t len); - virtual bool is_stat_supported() {return m_stat_supported == true;}; + virtual bool is_stat_supported() {return m_stat_supported == true;} virtual int get_ip_id(uint16_t &ip_id); virtual int set_ip_id(uint16_t ip_id); virtual int get_l4_proto(uint8_t &proto); @@ -45,8 +45,12 @@ class CFlowStatParser { class C82599Parser : public CFlowStatParser { public: - ~C82599Parser() {}; + C82599Parser(bool vlan_supported) {m_vlan_supported = vlan_supported;} + ~C82599Parser() {} int parse(uint8_t *pkt, uint16_t len); + + private: + bool m_vlan_supported; }; #endif |