OpenSDN source code
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
nh_kstate.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  */
4 
5 #ifndef vnsw_agent_nh_kstate_h
6 #define vnsw_agent_nh_kstate_h
7 
8 class NHKState: public KState {
9 public:
10  NHKState(KNHResp *obj, const std::string &resp_ctx,
11  vr_nexthop_req &encoder, int id);
12  virtual void SendResponse();
13  virtual void Handler();
14  virtual void SendNextRequest();
15  const std::string TypeToString(int type) const;
16  const std::string FamilyToString(int family) const;
17  const std::string FlagsToString(uint32_t flags) const;
18  const std::string EncapFamilyToString(int family) const;
19  const std::string EncapToString(const std::vector<signed char> &encap) const;
20  void SetComponentNH(vr_nexthop_req *req, KNHInfo &info);
21 };
22 
23 #endif //vnsw_agent_nh_kstate_h
const std::string EncapToString(const std::vector< signed char > &encap) const
Definition: nh_kstate.cc:111
const std::string FamilyToString(int family) const
Definition: nh_kstate.cc:87
Definition: kstate.h:24
virtual void Handler()
Definition: nh_kstate.cc:37
const std::string EncapFamilyToString(int family) const
Definition: nh_kstate.cc:99
virtual void SendResponse()
Definition: nh_kstate.cc:54
const std::string TypeToString(int type) const
Definition: nh_kstate.cc:65
uint8_t type
Definition: load_balance.h:109
NHKState(KNHResp *obj, const std::string &resp_ctx, vr_nexthop_req &encoder, int id)
Definition: nh_kstate.cc:15
virtual void SendNextRequest()
Definition: nh_kstate.cc:28
const std::string FlagsToString(uint32_t flags) const
Definition: nh_kstate.cc:124
void SetComponentNH(vr_nexthop_req *req, KNHInfo &info)
Definition: nh_kstate.cc:206