diff options
author | Alberto Compagno <acompagn+fdio@cisco.com> | 2019-02-04 17:51:11 +0100 |
---|---|---|
committer | Alberto Compagno <acompagn+fdio@cisco.com> | 2019-02-04 17:51:11 +0100 |
commit | 83ef24a70ddbeb9daa9c12a68464cc3b8349bd4f (patch) | |
tree | f3788438a79c2ef1d1461c34c97f95acfc0bdc01 /hicn-plugin/src | |
parent | 030bb23078a3ecb4dc48e0af0da4ad9d6d10ff7e (diff) |
[HICN-30] Removed wrong string that was appearing on the producer face
Change-Id: Ifa215f861836e560995df7503d41ea5e9df42def
Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
Diffstat (limited to 'hicn-plugin/src')
-rw-r--r-- | hicn-plugin/src/faces/app/face_prod_node.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/hicn-plugin/src/faces/app/face_prod_node.c b/hicn-plugin/src/faces/app/face_prod_node.c index 2e746a703..a9fbfa7bf 100644 --- a/hicn-plugin/src/faces/app/face_prod_node.c +++ b/hicn-plugin/src/faces/app/face_prod_node.c @@ -27,20 +27,9 @@ #include "../../hicn_api.h" #include "../../mgmt.h" -#define foreach_face_prod_input_error \ - _(NOT_SOCK_PREFIX, "name not in the socket prefix") - -typedef enum -{ -#define _(f,s) FACE_PROD_INPUT_ERROR_##f, - foreach_face_prod_input_error -#undef _ - FACE_PROD_INPUT_N_ERROR, -} face_prod_input_error_t; - static __clib_unused char *face_prod_input_error_strings[] = { -#define _(n,s) s, - foreach_face_prod_input_error +#define _(sym, string) string, + foreach_hicnfwd_error #undef _ }; @@ -134,8 +123,6 @@ hicn_face_prod_next_from_data_hdr (vlib_node_runtime_t * node, match_res = match_ip6_name ((u32x4 *) & (ptr[8]), prefix); } - b->error = 0*(1-match_res) + match_res*(node->errors[FACE_PROD_INPUT_ERROR_NOT_SOCK_PREFIX]); - return match_res ? HICN_FACE_PROD_NEXT_DATA_IP4 + (v == 0x60) : HICN_FACE_PROD_NEXT_ERROR_DROP; @@ -304,9 +291,6 @@ hicn_face_prod_input_node_fn (vlib_main_t * vm, vlib_node_increment_counter (vm, node->node_index, HICNFWD_ERROR_PROCESSED, stats.pkts_processed); - vlib_node_increment_counter (vm, node->node_index, - HICNFWD_ERROR_INTERESTS, - stats.pkts_interest_count); vlib_node_increment_counter (vm, node->node_index, HICNFWD_ERROR_DATAS, stats.pkts_data_count); |