/* Clear address list of a Neighbor Tuple and add Lost Neighbor Tuple for addresses no longer used by this neighbor  */
static void clear_nb_addresses(nib_entry_t *nib_entry, timex_t *now)
/* Clear address list of a Neighbor Tuple and add Lost Neighbor Tuple for addresses no longer used by this neighbor  */
static void clear_nb_addresses(nib_entry_t *nib_entry, timex_t *now)
{
    nhdp_addr_entry_t *nib_elt, *nib_tmp;
    LL_FOREACH_SAFE(nib_entry->address_list_head, nib_elt, nib_tmp) {
        if (!NHDP_ADDR_TMP_IN_NB_LIST(nib_elt->address)) {
            nib_elt->address->in_tmp_table |= NHDP_ADDR_TMP_REM_LIST;
            nib_elt->address->usg_count++;
            if (nib_entry->symmetric) {
                add_lost_neighbor_address(nib_elt->address, now);
            }
        }
        nhdp_free_addr_entry(nib_elt);
    }
    nib_entry->address_list_head = NULL;
}