X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Ffib%2Ffib_api.c;h=e9a28658523b65725429b05c1a8611c99a2d0f18;hb=2303cb181b51f63c909cd506125c1f832432865a;hp=a2f7e79b03c31cdf23ec495493b9daa3d885b3f4;hpb=8145842bf273823192140c57fc773bb92d9db64f;p=vpp.git diff --git a/src/vnet/fib/fib_api.c b/src/vnet/fib/fib_api.c index a2f7e79b03c..e9a28658523 100644 --- a/src/vnet/fib/fib_api.c +++ b/src/vnet/fib/fib_api.c @@ -217,7 +217,7 @@ fib_api_path_encode (const fib_route_path_encode_t * api_rpath, out->is_drop = true; break; case DPO_IP_NULL: - switch (api_rpath->dpo.dpoi_index) + switch (ip_null_dpo_get_action(api_rpath->dpo.dpoi_index)) { case IP_NULL_ACTION_NONE: out->is_drop = true; @@ -245,7 +245,7 @@ fib_api_path_encode (const fib_route_path_encode_t * api_rpath, !ip46_address_is_zero(&api_rpath->rpath.frp_addr)) { if ((DPO_PROTO_IP6 == api_rpath->rpath.frp_proto) || - (DPO_PROTO_IP6 == api_rpath->rpath.frp_proto)) + (DPO_PROTO_IP4 == api_rpath->rpath.frp_proto)) { fib_table_t *fib; @@ -266,3 +266,4 @@ fib_api_path_encode (const fib_route_path_encode_t * api_rpath, out->next_hop_id = api_rpath->rpath.frp_udp_encap_id; } } +