aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-plugin
diff options
context:
space:
mode:
Diffstat (limited to 'hicn-plugin')
-rw-r--r--hicn-plugin/src/mapme_ack_node.c10
-rw-r--r--hicn-plugin/src/mapme_ctrl_node.c16
-rw-r--r--hicn-plugin/src/mapme_eventmgr.c4
3 files changed, 15 insertions, 15 deletions
diff --git a/hicn-plugin/src/mapme_ack_node.c b/hicn-plugin/src/mapme_ack_node.c
index 21e177bb6..c2fb2b6ef 100644
--- a/hicn-plugin/src/mapme_ack_node.c
+++ b/hicn-plugin/src/mapme_ack_node.c
@@ -62,11 +62,11 @@ hicn_mapme_process_ack (vlib_main_t * vm, vlib_buffer_t * b,
if (rc < 0)
goto ERR_PARSE;
- if (params.seq == INVALID_SEQ)
- {
- DEBUG ("Invalid sequence number found in IU");
- return true;
- }
+ /* if (params.seq == INVALID_SEQ) */
+ /* { */
+ /* DEBUG ("Invalid sequence number found in IU"); */
+ /* return true; */
+ /* } */
dpo = fib_epm_lookup (&(prefix.name), prefix.len);
if (!dpo)
diff --git a/hicn-plugin/src/mapme_ctrl_node.c b/hicn-plugin/src/mapme_ctrl_node.c
index 7e07045c2..22a50d49e 100644
--- a/hicn-plugin/src/mapme_ctrl_node.c
+++ b/hicn-plugin/src/mapme_ctrl_node.c
@@ -90,13 +90,13 @@ hicn_mapme_process_ctrl (vlib_main_t * vm, vlib_buffer_t * b,
vlib_cli_output (vm, "IU - type:%d seq:%d len:%d", params.type, params.seq,
prefix.len);
- if (params.seq == INVALID_SEQ)
- {
- vlib_log_warn (mapme_main.log_class,
- "Invalid sequence number found in IU");
+ /* if (params.seq == INVALID_SEQ) */
+ /* { */
+ /* vlib_log_warn (mapme_main.log_class, */
+ /* "Invalid sequence number found in IU"); */
- return true;
- }
+ /* return true; */
+ /* } */
/* We forge the ACK which we be the packet forwarded by the node */
hicn_mapme_create_ack (vlib_buffer_get_current (b), &params);
@@ -310,9 +310,9 @@ VLIB_REGISTER_NODE (hicn_mapme_ctrl_node) =
.n_next_nodes = HICN_MAPME_CTRL_N_NEXT,
.next_nodes =
{
- /*
+ /*
* Control packets are not forwarded by this node, but sent by the Event
- * Manager. This node is only responsible for sending ACK back,
+ * Manager. This node is only responsible for sending ACK back,
* Acks are like data packets are output on iface's
*/
[HICN_MAPME_CTRL_NEXT_IP4_OUTPUT] = "hicn-iface-ip4-output",
diff --git a/hicn-plugin/src/mapme_eventmgr.c b/hicn-plugin/src/mapme_eventmgr.c
index 5d5916403..ce9c0a4b4 100644
--- a/hicn-plugin/src/mapme_eventmgr.c
+++ b/hicn-plugin/src/mapme_eventmgr.c
@@ -423,7 +423,7 @@ hicn_mapme_eventmgr_process (vlib_main_t * vm,
/* Delete entry_id from retransmissions in the current slot (if present) ... */
for (u8 j = 0; j < CURLEN; j++)
- if (dpo_cmp (&(CUR[j].dpo), &retx->dpo))
+ if (!dpo_cmp (&(CUR[j].dpo), &retx->dpo))
{
CUR[j].dpo.dpoi_index = ~0; /* sufficient */
}
@@ -431,7 +431,7 @@ hicn_mapme_eventmgr_process (vlib_main_t * vm,
/* ... and schedule it for next slot (if not already) */
u8 j;
for (j = 0; j < NXTLEN; j++)
- if (dpo_cmp (&NXT[j].dpo, &retx->dpo))
+ if (!dpo_cmp (&NXT[j].dpo, &retx->dpo))
break;
if (j == NXTLEN) /* not found */
NXT[NXTLEN++] = *retx;