Lines Matching refs:addr
211 static void dns_recv(void *s, struct udp_pcb *pcb, struct pbuf *p, ip_addr_t *addr, u16_t port);
332 entry->addr = init_entry->addr;
354 return ip4_addr_get_u32(&entry->addr);
362 return ip4_addr_get_u32(&local_hostlist_static[i].addr);
375 * @param addr address for which entries shall be removed from the local host-list
379 dns_local_removehost(const char *hostname, const ip_addr_t *addr)
386 ((addr == NULL) || ip_addr_cmp(&entry->addr, addr))) {
410 * @param addr IP address of the new entry
414 dns_local_addhost(const char *hostname, const ip_addr_t *addr)
428 ip_addr_copy(entry->addr, *addr);
454 u32_t addr;
457 if ((addr = dns_lookup_local(name)) != IPADDR_NONE) {
458 return addr;
462 if((addr = DNS_LOOKUP_LOCAL_EXTERN(name)) != IPADDR_NONE) {
463 return addr;
733 dns_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, ip_addr_t *addr, u16_t port)
744 LWIP_UNUSED_ARG(addr);
928 * @param addr pointer to a ip_addr_t where to store the address if it is already
936 dns_gethostbyname(const char *hostname, ip_addr_t *addr, dns_found_callback found,
940 /* not initialized or no valid server yet, or invalid addr pointer
942 if ((dns_pcb == NULL) || (addr == NULL) ||
950 ip_addr_set_loopback(addr);
955 /* host name already in octet notation? set ip addr and return ERR_OK */
962 ip4_addr_set_u32(addr, ipaddr);