/* Add a Neighbor Tuple for the neighbor address list  */
static nib_entry_t * add_nib_entry_for_nb_addr_list(void)
/* Add a Neighbor Tuple for the neighbor address list  */
static nib_entry_t * add_nib_entry_for_nb_addr_list(void)
{
    nib_entry_t *new_elem;
    new_elem = malloc(sizeof(nib_entry_t));
    if (!new_elem) {
        return NULL;
    }
    new_elem->address_list_head = nhdp_generate_addr_list_from_tmp(NHDP_ADDR_TMP_NB_LIST);
    if (!new_elem->address_list_head) {
        free(new_elem);
        return NULL;
    }
    new_elem->symmetric = 0;
    new_elem->metric_in = NHDP_METRIC_UNKNOWN;
    new_elem->metric_out = NHDP_METRIC_UNKNOWN;
    LL_PREPEND(nib_entry_head, new_elem);
    return new_elem;
}