Lines Matching full:arglist
46 struct arglist {
85 static struct arglist *rt_dsfield[RPDB_ENTRIES];
86 static struct arglist *rt_protos[RPDB_ENTRIES];
87 static struct arglist *rt_tables[RPDB_ENTRIES];
88 static struct arglist *rt_realms[RPDB_ENTRIES];
89 static struct arglist *rt_scope[RPDB_ENTRIES];
91 static struct arglist rtmtypes[] = { {"none", RTN_UNSPEC},
107 static int substring_to_idx(char *str, struct arglist *list)
109 struct arglist *alist;
120 static int string_to_idx(char *str, struct arglist *list)
122 struct arglist *alist;
130 static char *idx_to_string(int idx, struct arglist *list)
132 struct arglist *alist;
162 static void parseRPDB(char *fname, struct arglist **list, int32_t size)
186 else list[index] = xzalloc(sizeof(struct arglist));
194 static void free_alist(struct arglist **list)
205 static void init_arglist(struct arglist **list,int value, char* name)
207 if (!list[value]) list[value] = xzalloc(sizeof(struct arglist));
212 static struct arglist **getlist(u_int8_t whichDB)
214 struct arglist **alist;
284 struct arglist **alist;
303 struct arglist **alist;
487 static char *get_flag_string(struct arglist *aflags, int flags, int ismulti)
489 struct arglist *p = aflags;
505 struct arglist vlan_optlist[] = {{"id", 0}, {"protocol", 1},
507 struct arglist vlan_protolist[] = {{"802.1q", 0}, {"802.1ad", 1}, {NULL,-1}};
508 struct arglist on_off[] = { {"on", 0}, {"off", 1}, {NULL,-1}};
558 struct arglist objectlist[] = { {"type", 0}, {"name", 1}, {"link", 2},
634 struct arglist cmd_objectlist[] = {{"up", 0}, {"down", 1}, {"arp", 2},
739 struct arglist iface_flags[] = {{"",0},{"UP", IFF_UP},
807 struct arglist hwtypes[]={{"generic",0},{"ether",ARPHRD_ETHER},
878 struct arglist flags[]={{"UNKNOWN", 0}, {"NOTPRESENT", 1},
934 struct arglist cmd_objectlist[] = {{"add", 0}, {"delete", 0},
1060 struct arglist cmd_objectlist[] = {{"dev",0}, {"peer", 1},
1228 struct arglist cmd_objectlist[] = {{"to", 0}, {"scope", 1}, {"up", 2},
1424 struct arglist cmd_objectlist[] = { {"add", 0}, {"delete", 0},
1669 struct arglist cmd_objectlist[] = {{"from", 0}, {"iif", 1}, {"oif", 2},
1761 struct arglist cmd_objectlist[] = {{"protocol", 0}, {"dev", 1}, {"oif", 2},
1894 struct arglist cmd_objectlist[] = {{"src", 0}, {"via", 1}, {"mtu", 2},
2024 struct arglist
2077 struct arglist options[] = {{"from", 0}, {"to", 1}, {"preference", 2},
2300 struct arglist options[] = {{"add", 0}, {"delete", 0}, {"list", 1},
2435 struct arglist opts[] = { {"mode", 0}, {"key", 1}, {"ikey", 2},
2662 struct arglist opts[] = {{"add", 0}, {"change", 0}, {"del", 0},
2733 struct arglist ip_options[] = {{"oneline", 0}, {"family", 1},
2753 struct arglist ip_aflist[] = {{"inet", AF_INET},
2774 struct arglist ip_objectlist[] = { {"address", 0}, {"link", 1},
2782 struct arglist ip_objectlist[] = { {"ipaddr", 0}, {"iplink", 1},