Searched refs:ni (Results 1 – 25 of 38) sorted by relevance
12
45 struct if_nameindex *ni; in ZTEST() local50 ni = if_nameindex(); in ZTEST()51 if (ni == NULL) { in ZTEST()57 zassert_equal(i + 1, ni[i].if_index); in ZTEST()58 zassert_not_null(ni[i].if_name); in ZTEST()59 TC_PRINT("interface %zu: %s\n", i + 1, ni[i].if_name); in ZTEST()60 zassert_equal(0, ni[n].if_index); in ZTEST()61 zassert_is_null(ni[n].if_name); in ZTEST()64 if_freenameindex(ni); in ZTEST()
135 struct if_nameindex *ni; in if_nameindex() local139 ni = malloc((n + 1) * sizeof(*ni)); in if_nameindex()140 if (ni == NULL) { in if_nameindex()145 ni[i].if_index = i + 1; in if_nameindex()147 ni[i].if_name = malloc(IF_NAMESIZE); in if_nameindex()148 if (ni[i].if_name == NULL) { in if_nameindex()152 name = if_indextoname(i + 1, ni[i].if_name); in if_nameindex()156 ni[n].if_index = 0; in if_nameindex()157 ni[n].if_name = NULL; in if_nameindex()159 return ni; in if_nameindex()[all …]
137 int nwalked = 0, i, ni; in _check_tree() local153 ni = node_index(n); in _check_tree()159 _CHECK(get_node_mask(ni)); in _check_tree()165 ni = 0; in _check_tree()170 _CHECK(node_index(walked_nodes[ni]) == i); in _check_tree()171 ni++; in _check_tree()175 _CHECK(ni == nwalked); in _check_tree()
1 # Copyright (c) 2021 Guðni Már Gilbert
3 # Copyright (c) 2021 Guðni Már Gilbert
2 * Copyright (c) 2021 Guðni Már Gilbert