summaryrefslogtreecommitdiffstats
path: root/src/vnet/ip/ip4_punt_drop.c
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2019-07-29 12:59:45 +0000
committerNeale Ranns <nranns@cisco.com>2019-07-31 10:08:05 +0000
commit5ca2a8ae19c93d24070df066d027da791294b827 (patch)
tree19b8e6f95923e3e4a4a8c1369b6b68e097464c43 /src/vnet/ip/ip4_punt_drop.c
parent6b43ce57cb5620c936b38ff9c5443b3f0f447170 (diff)
fib: fix calls to unformat_fib_path
Type: fix Ticket: 1728 Change-Id: I679c2b8c5b0f751c9476db3669ab3f6c26dcdd28 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/ip/ip4_punt_drop.c')
-rw-r--r--src/vnet/ip/ip4_punt_drop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/ip/ip4_punt_drop.c b/src/vnet/ip/ip4_punt_drop.c
index 4771e8d5b34..fc5a68fc66a 100644
--- a/src/vnet/ip/ip4_punt_drop.c
+++ b/src/vnet/ip/ip4_punt_drop.c
@@ -338,6 +338,7 @@ ip4_punt_redirect_cmd (vlib_main_t * vm,
{
unformat_input_t _line_input, *line_input = &_line_input;
fib_route_path_t *rpaths = NULL, rpath;
+ dpo_proto_t payload_proto;
clib_error_t *error = 0;
u32 rx_sw_if_index = ~0;
vnet_main_t *vnm;
@@ -361,7 +362,7 @@ ip4_punt_redirect_cmd (vlib_main_t * vm,
unformat_vnet_sw_interface, vnm, &rx_sw_if_index))
;
else if (unformat (line_input, "via %U",
- unformat_fib_route_path, &rpath))
+ unformat_fib_route_path, &rpath, &payload_proto))
vec_add1 (rpaths, rpath);
else
{