mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-14 12:16:21 +08:00
DNS: Allow a DNS look-up with a trailing dot in the name
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
committed by
Simon Goldschmidt
parent
9071db11af
commit
ef76bbe3f0
@@ -1178,7 +1178,9 @@
|
||||
* DNS_LOCAL_HOSTLIST_ELEM("host_ip6", IPADDR6_INIT_HOST(123, 234, 345, 456)}
|
||||
*
|
||||
* Instead, you can also use an external function:
|
||||
* \#define DNS_LOOKUP_LOCAL_EXTERN(x) extern err_t my_lookup_function(const char *name, ip_addr_t *addr, u8_t dns_addrtype)
|
||||
* \#define DNS_LOOKUP_LOCAL_EXTERN(name, namelen, addr, dns_addrtype) my_lookup_function(name, namelen, addr, dns_addrtype)
|
||||
* with function signature:
|
||||
* extern err_t my_lookup_function(const char *name, size_t namelen, ip_addr_t *addr, u8_t dns_addrtype)
|
||||
* that looks up the IP address and returns ERR_OK if found (LWIP_DNS_ADDRTYPE_xxx is passed in dns_addrtype).
|
||||
*/
|
||||
#if !defined DNS_LOCAL_HOSTLIST || defined __DOXYGEN__
|
||||
|
||||
Reference in New Issue
Block a user