Lines Matching refs:entry

167 /** DNS table entry */
317 struct local_hostlist_entry *entry;
326 entry = (struct local_hostlist_entry *)memp_malloc(MEMP_LOCALHOSTLIST);
327 LWIP_ASSERT("mem-error in dns_init_local", entry != NULL);
328 if (entry != NULL) {
329 entry->name = (char*)entry + sizeof(struct local_hostlist_entry);
330 MEMCPY((char*)entry->name, init_entry->name, namelen);
331 ((char*)entry->name)[namelen] = 0;
332 entry->addr = init_entry->addr;
333 entry->next = local_hostlist_dynamic;
334 local_hostlist_dynamic = entry;
351 struct local_hostlist_entry *entry = local_hostlist_dynamic;
352 while(entry != NULL) {
353 if(strcmp(entry->name, hostname) == 0) {
354 return ip4_addr_get_u32(&entry->addr);
356 entry = entry->next;
382 struct local_hostlist_entry *entry = local_hostlist_dynamic;
384 while (entry != NULL) {
385 if (((hostname == NULL) || !strcmp(entry->name, hostname)) &&
386 ((addr == NULL) || ip_addr_cmp(&entry->addr, addr))) {
389 last_entry->next = entry->next;
391 local_hostlist_dynamic = entry->next;
393 free_entry = entry;
394 entry = entry->next;
398 last_entry = entry;
399 entry = entry->next;
409 * @param hostname hostname of the new entry
410 * @param addr IP address of the new entry
416 struct local_hostlist_entry *entry;
421 entry = (struct local_hostlist_entry *)memp_malloc(MEMP_LOCALHOSTLIST);
422 if (entry == NULL) {
425 entry->name = (char*)entry + sizeof(struct local_hostlist_entry);
426 MEMCPY((char*)entry->name, hostname, namelen);
427 ((char*)entry->name)[namelen] = 0;
428 ip_addr_copy(entry->addr, *addr);
429 entry->next = local_hostlist_dynamic;
430 local_hostlist_dynamic = entry;
467 /* Walk through name list, return entry if found. If not, return NULL. */
485 * entry (otherwise, answers might arrive late for hostname not on the list
628 * Check an entry in the dns_table:
633 * @param i index of the dns_table entry to check
646 /* initialize new entry */
652 /* send DNS packet for this entry */
675 /* flush this entry */
685 /* send DNS packet for this entry */
699 /* flush this entry */
709 LWIP_ASSERT("unknown dns_table entry state:", 0);
715 * Call dns_check_entry for each entry in dns_table - check all entries.
763 /* The ID in the DNS header should be our entry into the name table. */
769 /* This entry is now completed. */
786 /* Check if the name in the "question" part match with the name in the entry. */
841 /* flush this entry */
867 /* search an unused entry, or the oldest one */
871 /* is it an unused entry ? */
875 /* check if this is the oldest completed entry */
884 /* if we don't have found an unused entry, use the oldest completed one */
887 /* no entry can't be used now, table is full */
897 /* use this entry */
898 LWIP_DEBUGF(DNS_DEBUG, ("dns_enqueue: \"%s\": use DNS entry %"U16_F"\n", name, (u16_t)(i)));
900 /* fill the entry */