- ip_neighbor_probe_dst (adj, &adj->sub_type.nbr.next_hop);
-}
-
-void
-ip_neighbor_advertise (vlib_main_t * vm,
- ip46_type_t type,
- const ip46_address_t * addr, u32 sw_if_index)
-{
- vnet_main_t *vnm = vnet_get_main ();
-
- if (type == IP46_TYPE_IP4 || type == IP46_TYPE_BOTH)
- ip4_neighbor_advertise (vm, vnm, sw_if_index, (addr) ? &addr->ip4 : NULL);
- if (type == IP46_TYPE_IP6 || type == IP46_TYPE_BOTH)
- ip6_neighbor_advertise (vm, vnm, sw_if_index, (addr) ? &addr->ip6 : NULL);
+ ip_neighbor_probe_dst (adj->rewrite_header.sw_if_index,
+ ip_address_family_from_fib_proto (adj->ia_nh_proto),
+ &adj->sub_type.nbr.next_hop);