Lines Matching refs:alist
129 struct arglist *alist; in substring_to_idx() local
135 for (alist = list; alist->name; alist++) in substring_to_idx()
136 if (!memcmp(str, alist->name, len)) return alist->idx; in substring_to_idx()
142 struct arglist *alist; in string_to_idx() local
145 for (alist = list; alist->name; alist++) in string_to_idx()
146 if (!strcmp(str, alist->name)) return alist->idx; in string_to_idx()
152 struct arglist *alist; in idx_to_string() local
155 for (alist = list; alist->name; alist++) in idx_to_string()
156 if (idx == alist->idx) return alist->name; in idx_to_string()
234 struct arglist **alist; in getlist() local
238 alist = rt_dsfield; in getlist()
241 parseRPDB("/etc/iproute2/rt_dsfield", alist, ARRAY_LEN(rt_dsfield)); in getlist()
245 alist = rt_protos; in getlist()
258 parseRPDB("/etc/iproute2/rt_protos", alist, ARRAY_LEN(rt_protos)); in getlist()
262 alist = rt_realms; in getlist()
266 parseRPDB("/etc/iproute2/rt_realms", alist, ARRAY_LEN(rt_realms)); in getlist()
270 alist = rt_scope; in getlist()
278 parseRPDB("/etc/iproute2/rt_scopes", alist, ARRAY_LEN(rt_scope)); in getlist()
282 alist = rt_tables; in getlist()
288 parseRPDB("/etc/iproute2/rt_tables", alist, ARRAY_LEN(rt_tables)); in getlist()
295 return alist; in getlist()
304 struct arglist **alist; in namefromRPDB() local
311 alist = getlist(whichDB); in namefromRPDB()
313 if (alist[idx] && alist[idx]->name) return alist[idx]->name; in namefromRPDB()
323 struct arglist **alist; in idxfromRPDB() local
327 for (alist = getlist(whichDB); i < RPDB_ENTRIES; i++) { in idxfromRPDB()
328 if (!alist[i] || !alist[i]->name) continue; in idxfromRPDB()
329 if (!strcmp(alist[i]->name, name)) return i; in idxfromRPDB()