LCOV - code coverage report
Current view: top level - vnsw/agent/pkt - flow_handler.h (source / functions) Hit Total Coverage
Test: OpenSDN C/C++ coverage (all TARGET_SET jobs) Lines: 3 14 21.4 %
Date: 2026-06-18 01:51:13 Functions: 2 6 33.3 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
       3             :  */
       4             : 
       5             : #ifndef vnsw_agent_flow_handler_hpp
       6             : #define vnsw_agent_flow_handler_hpp
       7             : 
       8             : #include "pkt/proto_handler.h"
       9             : 
      10             : static const std::string unknown_vn_ = "__UNKNOWN__";
      11             : 
      12             : struct PktInfo;
      13             : class PktFlowInfo;
      14             : 
      15             : class FlowHandler : public ProtoHandler {
      16             : public:
      17           0 :     FlowHandler(Agent *agent, boost::shared_ptr<PktInfo> info,
      18           0 :                 boost::asio::io_context &io, FlowProto *proto, uint16_t index) :
      19           0 :                 ProtoHandler(agent, info, io), flow_proto_(proto),
      20           0 :                 flow_table_index_(index) {
      21           0 :     }
      22           0 :     virtual ~FlowHandler() {}
      23             : 
      24             :     bool Run();
      25             : 
      26           1 :     static const std::string UnknownVn() { return unknown_vn_; }
      27           0 :     static const VnListType UnknownVnList() {
      28           0 :         VnListType unknown_vn_list;
      29           0 :         unknown_vn_list.insert(unknown_vn_);
      30           0 :         return unknown_vn_list;
      31           0 :     }
      32           1 :     static const std::string LinkLocalVn() {
      33           1 :         return Agent::GetInstance()->linklocal_vn_name();
      34             :     }
      35             :     bool IsL3ModeFlow() const;
      36             : 
      37             : private:
      38             :     FlowProto *flow_proto_;
      39             :     uint16_t flow_table_index_;
      40             : };
      41             : 
      42             : #endif // vnsw_agent_flow_handler_hpp

Generated by: LCOV version 1.14