Use IP and MAC API types for neighbors
[vpp.git] / src / vnet / lisp-cp / control.c
index ca71bf8..6369e4e 100644 (file)
@@ -774,6 +774,7 @@ vnet_lisp_map_cache_add_del (vnet_lisp_add_del_mapping_args_t * a,
       m->is_static = a->is_static;
       m->key = vec_dup (a->key);
       m->key_id = a->key_id;
+      m->authoritative = a->authoritative;
 
       map_index = m - lcm->mapping_pool;
       gid_dictionary_add_del (&lcm->mapping_index_by_gid, &a->eid, map_index,
@@ -3457,8 +3458,7 @@ lisp_cp_lookup_inline (vlib_main_t * vm,
                                                + sizeof (*eth0));
              arp0->opcode = clib_host_to_net_u16 (ETHERNET_ARP_OPCODE_reply);
              arp0->ip4_over_ethernet[1] = arp0->ip4_over_ethernet[0];
-             clib_memcpy (arp0->ip4_over_ethernet[0].ethernet,
-                          (u8 *) & mac0, 6);
+             mac_address_from_u64 (&arp0->ip4_over_ethernet[0].mac, mac0);
              clib_memcpy (&arp0->ip4_over_ethernet[0].ip4,
                           &gid_address_arp_ip4 (&dst), 4);