Hybrid ICN (hICN) plugin  v21.06-rc0-4-g18fa668
Classes | Typedefs | Enumerations | Variables
strategy.h File Reference
#include "hicn.h"
#include "hashtb.h"
#include "mgmt.h"
#include "faces/face.h"
Include dependency graph for strategy.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  hicn_strategy_trace_t
 
struct  hicn_strategy_vft_s
 

Typedefs

typedef struct hicn_strategy_vft_s hicn_strategy_vft_t
 

Enumerations

enum  hicn_strategy_next_t {
  HICN_STRATEGY_NEXT_INTEREST_HITPIT, HICN_STRATEGY_NEXT_INTEREST_HITCS, HICN_STRATEGY_NEXT_INTEREST_FACE4, HICN_STRATEGY_NEXT_INTEREST_FACE6,
  HICN_STRATEGY_NEXT_ERROR_DROP, HICN_STRATEGY_N_NEXT
}
 

Variables

vlib_node_registration_t hicn_strategy_node
 

Detailed Description

A strategy is defined as a dpo and a set of function (vft) that will be called during the packet processing. A strategy is associated to an entry in the fib by assigning the corresponding dpo to the fib entry. The dpo points to a hICN dpo context (ctx) which contains the information needed by the strategy to compute the next hop. Each strategy hash its own dpo type, which means that the dpo_type uniquely identifies a strategy and its vft. The strategy node will use the dpo_type to retrieve the corresponding vft. Here we provide: