summaryrefslogtreecommitdiffstats
path: root/hicn-plugin/src/cli.c
diff options
context:
space:
mode:
authorAlberto Compagno <acompagn+fdio@cisco.com>2019-03-27 17:40:42 +0100
committerAlberto Compagno <acompagn+fdio@cisco.com>2019-03-27 17:40:42 +0100
commita91867ab59f1cbbd41d1e01ded6e15474a6889b5 (patch)
tree9dcf9c2bd31aee81ab5e2b580d531da915fa5e0d /hicn-plugin/src/cli.c
parent558581790763815071e9c77e06047e689faf752f (diff)
[HICN-150] Fixed punting to classify packets from current_data instead of from data
Change-Id: I448b13430dc00ea47b928092249fb9ca88ceba0e Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
Diffstat (limited to 'hicn-plugin/src/cli.c')
-rw-r--r--hicn-plugin/src/cli.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/hicn-plugin/src/cli.c b/hicn-plugin/src/cli.c
index 12a65495a..3905e0af1 100644
--- a/hicn-plugin/src/cli.c
+++ b/hicn-plugin/src/cli.c
@@ -658,7 +658,7 @@ hicn_cli_punting_command_fn (vlib_main_t * vm, unformat_input_t * main_input,
clib_host_to_net_u16
(src_port),
clib_host_to_net_u16
- (dst_port));
+ (dst_port), NO_L2);
else
return (clib_error_return
(0,
@@ -667,8 +667,8 @@ hicn_cli_punting_command_fn (vlib_main_t * vm, unformat_input_t * main_input,
else
{
ret =
- hicn_punt_interest_data_for_ethernet (vm, &prefix, subnet_mask,
- sw_if_index, type);
+ hicn_punt_interest_data_for_ip (vm, &prefix, subnet_mask,
+ sw_if_index, type, NO_L2);
}
}
break;
@@ -689,9 +689,10 @@ hicn_cli_punting_command_fn (vlib_main_t * vm, unformat_input_t * main_input,
ret = ip46_address_is_ip4 (&prefix) ?
hicn_punt_remove_ip4_address (vm, &(prefix.ip4), subnet_mask, 1,
sw_if_index,
- 0) :
+ 0, NO_L2) :
hicn_punt_remove_ip6_address (vm, (ip6_address_t *) & prefix,
- subnet_mask, 1, sw_if_index, 0);
+ subnet_mask, 1, sw_if_index, 0,
+ NO_L2);
}
}
break;