BIER
[vpp.git] / src / vnet / mpls / mpls_api.c
index c47e94d..f345ca6 100644 (file)
@@ -234,9 +234,11 @@ mpls_route_add_del_t_handler (vnet_main_t * vnm,
                                    mp->mr_is_rpf_id,
                                    0,  // l2_bridged
                                    0,   // is source_lookup
+                                   0,   // is_udp_encap
                                   fib_index, &pfx,
                                   mp->mr_next_hop_proto,
-                                  &nh, ntohl (mp->mr_next_hop_sw_if_index),
+                                  &nh, ~0, // next_hop_id
+                                   ntohl (mp->mr_next_hop_sw_if_index),
                                   next_hop_fib_index,
                                   mp->mr_next_hop_weight,
                                   mp->mr_next_hop_preference,
@@ -364,7 +366,7 @@ typedef struct mpls_tunnel_send_walk_ctx_t_
 static void
 send_mpls_tunnel_entry (u32 mti, void *arg)
 {
-  fib_route_path_encode_t *api_rpaths, *api_rpath;
+  fib_route_path_encode_t *api_rpaths = NULL, *api_rpath;
   mpls_tunnel_send_walk_ctx_t *ctx;
   vl_api_mpls_tunnel_details_t *mp;
   const mpls_tunnel_t *mt;