Lines Matching refs:hostname
23 * Once a hostname has been resolved (or found to be non-existent),
285 static err_t dns_lookup_local(const char *hostname, ip_addr_t *addr LWIP_DNS_ADDRTYPE_ARG(u8_t dns_addrtype));
467 * Iterate the local host-list for a hostname.
499 * Scans the local host-list for a hostname.
501 * @param hostname Hostname to look for in the local host-list
502 * @param addr the first IP address for the hostname in the local host-list or
511 dns_local_lookup(const char *hostname, ip_addr_t *addr, u8_t dns_addrtype)
514 return dns_lookup_local(hostname, addr LWIP_DNS_ADDRTYPE_ARG(dns_addrtype));
519 dns_lookup_local(const char *hostname, ip_addr_t *addr LWIP_DNS_ADDRTYPE_ARG(u8_t dns_addrtype))
524 if ((lwip_stricmp(entry->name, hostname) == 0) &&
536 if ((lwip_stricmp(local_hostlist_static[i].name, hostname) == 0) &&
551 * Remove all entries from the local host-list for a specific hostname
554 * @param hostname hostname for which entries shall be removed from the local
560 dns_local_removehost(const char *hostname, const ip_addr_t *addr)
566 if (((hostname == NULL) || !lwip_stricmp(entry->name, hostname)) &&
588 * Add a hostname/IP address pair to the local host-list.
591 * @param hostname hostname of the new entry
596 dns_local_addhost(const char *hostname, const ip_addr_t *addr)
601 LWIP_ASSERT("invalid host name (NULL)", hostname != NULL);
602 namelen = strlen(hostname);
609 MEMCPY(entry_name, hostname, namelen);
622 * Look up a hostname in the array of known hostnames.
625 * hostnames, it does not send out a query for the hostname if none
627 * for a hostname.
629 * @param name the hostname to look up
630 * @param addr the hostname's IP address, as u32_t (instead of ip_addr_t to
631 * better check for failure: != IPADDR_NONE) or IPADDR_NONE if the hostname
671 * entry (otherwise, answers might arrive late for hostname not on the list
679 * @param query hostname (not encoded) from the dns_table
680 * @param p pbuf containing the encoded hostname in the DNS response
789 const char *hostname, *hostname_part;
853 hostname = entry->name;
854 --hostname;
856 /* convert hostname into suitable query format. */
867 ++hostname;
868 hostname_part = hostname;
869 for (n = 0; *hostname != '.' && *hostname != 0; ++hostname) {
872 copy_len = (u16_t)(hostname - hostname_part);
880 } while (*hostname != 0);
1028 * entries for the given hostname. If there are any, their found callback will
1032 * @param addr IP address for the hostname (or NULL on error or memory shortage)
1478 * Queues a new hostname to resolve and sends out a DNS query for that hostname
1480 * @param name the hostname that is to be queried
1481 * @param hostnamelen length of the hostname
1619 * Resolve a hostname (string) into an IP address.
1623 * - ERR_OK if hostname is a valid IP address string or the host
1627 * - ERR_ARG: dns client not initialized or invalid hostname
1629 * @param hostname the hostname that is to be queried
1638 dns_gethostbyname(const char *hostname, ip_addr_t *addr, dns_found_callback found,
1641 return dns_gethostbyname_addrtype(hostname, addr, found, callback_arg, LWIP_DNS_ADDRTYPE_DEFAULT);
1647 * @param hostname the hostname that is to be queried
1659 dns_gethostbyname_addrtype(const char *hostname, ip_addr_t *addr, dns_found_callback found,
1667 * or invalid hostname or invalid hostname length */
1669 (!hostname) || (!hostname[0])) {
1677 hostnamelen = strlen(hostname);
1685 if (strcmp(hostname, "localhost") == 0) {
1692 if (ipaddr_aton(hostname, addr)) {
1702 if (dns_lookup(hostname, addr LWIP_DNS_ADDRTYPE_ARG(dns_addrtype)) == ERR_OK) {
1714 if (dns_lookup(hostname, addr LWIP_DNS_ADDRTYPE_ARG(fallback)) == ERR_OK) {
1723 if (strstr(hostname, ".local") == &hostname[hostnamelen] - 6) {
1739 return dns_enqueue(hostname, hostnamelen, found, callback_arg LWIP_DNS_ADDRTYPE_ARG(dns_addrtype)