コード例 #1
0
ファイル: iface_locators.c プロジェクト: biels/oor
void
iface_locators_attach_map_local_entry(shash_t *iface_locators_table,
        map_local_entry_t * map_loc_e)
{
    mapping_t * mapping;
    locator_t * locator;
    iface_locators * iface_loct;

    mapping = map_local_entry_mapping(map_loc_e);

    mapping_foreach_locator(mapping,locator){
    		iface_loct = iface_locators_get_element_with_loct(
    				iface_locators_table, locator);
    		if (iface_loct != NULL &&
    				glist_contain(map_loc_e, iface_loct->map_loc_entries) == FALSE){
    			glist_add(map_loc_e, iface_loct->map_loc_entries);
    		}
    }mapping_foreach_locator_end;
コード例 #2
0
ファイル: map_local_entry.c プロジェクト: muharif/oor2
inline lisp_addr_t *
map_local_entry_eid(map_local_entry_t *mle){
    return (mapping_eid(map_local_entry_mapping(mle)));
}