diff options
author | Alberto Compagno <acompagn+fdio@cisco.com> | 2019-06-06 19:42:12 +0200 |
---|---|---|
committer | Alberto Compagno <acompagn+fdio@cisco.com> | 2019-06-06 23:02:14 +0200 |
commit | 27712b5f2a06c935a97643d91f6bd1345d05ec3b (patch) | |
tree | bd9dc4ee89daea07722db9376be4a5ef63b9ddf6 /hicn-plugin/src/faces/udp/dpo_udp.h | |
parent | 2d555daf9034459ec5ef20f7d63cccd25c6c4b0c (diff) |
[HICN-214] Updating next_node in the face that mapme add to the fib in order to forward interests
Change-Id: I97c408c9e910df0ea7c43c0341c0025521ced125
Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
Diffstat (limited to 'hicn-plugin/src/faces/udp/dpo_udp.h')
-rw-r--r-- | hicn-plugin/src/faces/udp/dpo_udp.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/hicn-plugin/src/faces/udp/dpo_udp.h b/hicn-plugin/src/faces/udp/dpo_udp.h index 42b9864df..06c65a9c2 100644 --- a/hicn-plugin/src/faces/udp/dpo_udp.h +++ b/hicn-plugin/src/faces/udp/dpo_udp.h @@ -24,6 +24,9 @@ #include "../face.h" #include "../../error.h" +extern u32 strategy_face_udp4_vlib_edge; +extern u32 strategy_face_udp6_vlib_edge; + /** * @brief Initialize the internal structures of the dpo udp face module. @@ -88,7 +91,7 @@ hicn_dpo_udp4_lock (dpo_id_t * dpo, index_t dpoi_index = hicn_dpoi_get_index (face); dpo_set (dpo, hicn_face_udp_type, DPO_PROTO_IP4, dpoi_index); - dpo->dpoi_next_node = ~0; + dpo->dpoi_next_node = strategy_face_udp4_vlib_edge; dpo_lock (dpo); *hicnb_flags = HICN_BUFFER_FLAGS_DEFAULT; @@ -208,7 +211,7 @@ hicn_dpo_udp6_lock (dpo_id_t * dpo, hicn_face_id_t dpoi_index = hicn_dpoi_get_index (face); dpo_set (dpo, hicn_face_udp_type, DPO_PROTO_IP6, dpoi_index); - dpo->dpoi_next_node = ~0; + dpo->dpoi_next_node = strategy_face_udp6_vlib_edge; dpo_lock (dpo); *hicnb_flags = HICN_BUFFER_FLAGS_DEFAULT; |