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