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:
- a template for the callbacks to implement in order to create a new strategy (hicn_fwd_strategy_t)
- a default implementation for the strategy node which will call the strategy functions while processing the interest packets