Lines Matching defs:list

13  * this list of conditions and the following disclaimer.
16 * this list of conditions and the following disclaimer in the documentation
1070 int edns_opt_list_append_ede(struct edns_option** list, struct regional* region,
1091 /* append at end of list */
1092 prevp = list;
1100 int edns_opt_list_append_keepalive(struct edns_option** list, int msec,
1106 return edns_opt_list_append(list, LDNS_EDNS_KEEPALIVE, sizeof(data),
1110 int edns_opt_list_append(struct edns_option** list, uint16_t code, size_t len,
1130 /* append at end of list */
1131 prevp = list;
1139 int edns_opt_list_remove(struct edns_option** list, uint16_t code)
1141 /* The list should already be allocated in a region. Freeing the
1147 if(!list || !(*list)) return 0;
1149 /* Unlink and repoint if the element(s) are first in list */
1150 while(list && *list && (*list)->opt_code == code) {
1151 *list = (*list)->next;
1154 if(!list || !(*list)) return 1;
1155 /* Unlink elements and reattach the list */
1156 prev = *list;
1157 curr = (*list)->next;
1284 struct edns_option* edns_opt_copy_region(struct edns_option* list,
1288 while(list) {
1290 s = regional_alloc_init(region, list, sizeof(*list));
1302 /* link into list */
1309 list = list->next;
1314 struct edns_option* edns_opt_copy_filter_region(struct edns_option* list,
1319 while(list) {
1321 if(filter_list[i] == list->opt_code) goto found;
1325 s = regional_alloc_init(region, list, sizeof(*list));
1337 /* link into list */
1345 list = list->next;
1383 void edns_opt_list_free(struct edns_option* list)
1386 while(list) {
1387 free(list->opt_data);
1388 n = list->next;
1389 free(list);
1390 list = n;
1394 struct edns_option* edns_opt_copy_alloc(struct edns_option* list)
1397 while(list) {
1399 s = memdup(list, sizeof(*list));
1416 /* link into list */
1423 list = list->next;
1428 struct edns_option* edns_opt_list_find(struct edns_option* list, uint16_t code)
1431 for(p=list; p; p=p->next) {