Lines Matching refs:alist
130 struct arglist *alist; in substring_to_idx() local
136 for (alist = list; alist->name; alist++) in substring_to_idx()
137 if (!memcmp(str, alist->name, len)) return alist->idx; in substring_to_idx()
143 struct arglist *alist; in string_to_idx() local
146 for (alist = list; alist->name; alist++) in string_to_idx()
147 if (!strcmp(str, alist->name)) return alist->idx; in string_to_idx()
153 struct arglist *alist; in idx_to_string() local
156 for (alist = list; alist->name; alist++) in idx_to_string()
157 if (idx == alist->idx) return alist->name; in idx_to_string()
236 struct arglist **alist; in getlist() local
240 alist = rt_dsfield; in getlist()
243 parseRPDB("/etc/iproute2/rt_dsfield", alist, ARRAY_LEN(rt_dsfield)); in getlist()
247 alist = rt_protos; in getlist()
260 parseRPDB("/etc/iproute2/rt_protos", alist, ARRAY_LEN(rt_protos)); in getlist()
264 alist = rt_realms; in getlist()
268 parseRPDB("/etc/iproute2/rt_realms", alist, ARRAY_LEN(rt_realms)); in getlist()
272 alist = rt_scope; in getlist()
280 parseRPDB("/etc/iproute2/rt_scopes", alist, ARRAY_LEN(rt_scope)); in getlist()
284 alist = rt_tables; in getlist()
290 parseRPDB("/etc/iproute2/rt_tables", alist, ARRAY_LEN(rt_tables)); in getlist()
297 return alist; in getlist()
306 struct arglist **alist; in namefromRPDB() local
313 alist = getlist(whichDB); in namefromRPDB()
315 if (alist[idx] && alist[idx]->name) return alist[idx]->name; in namefromRPDB()
325 struct arglist **alist; in idxfromRPDB() local
329 for (alist = getlist(whichDB); i < RPDB_ENTRIES; i++) { in idxfromRPDB()
330 if (!alist[i] || !alist[i]->name) continue; in idxfromRPDB()
331 if (!strcmp(alist[i]->name, name)) return i; in idxfromRPDB()