DNS host name to IP address resolver.
- Author
- Adam Dunkels adam@.nosp@m.dunk.nosp@m.els.c.nosp@m.om
-
Robert Quattlebaum darco.nosp@m.@dee.nosp@m.pdarc.nosp@m..com
This file implements a DNS host name to IP address resolver,
as well as an MDNS responder and resolver.
|
static void | check_entries (void) |
|
static uint8_t | decode_name (const unsigned char *query, char *dest, const unsigned char *packet) |
| Decodes a DNS name from the DNS format into the given string. More...
|
|
static uint8_t | dns_name_isequal (const unsigned char *queryptr, const char *name, const unsigned char *packet) |
|
static unsigned char * | encode_name (unsigned char *query, const char *nameptr) |
|
static void | mdns_announce_requested (void) |
|
static size_t | mdns_prep_host_announce_packet (void) |
|
static unsigned char * | mdns_write_announce_records (unsigned char *queryptr, uint8_t *count) |
|
static void | newdata (void) |
|
| PROCESS (resolv_process,"DNS resolver") |
|
| PROCESS (mdns_probe_process,"mDNS probe") |
|
| PROCESS_THREAD (mdns_probe_process, ev, data) |
|
| PROCESS_THREAD (resolv_process, ev, data) |
|
static const char * | remove_trailing_dots (const char *name) |
|
void | resolv_conf (const uip_ipaddr_t *dnsserver) |
| Configure a DNS server. More...
|
|
static void | resolv_found (char *name, uip_ipaddr_t *ipaddr) |
|
const char * | resolv_get_hostname (void) |
| Returns the local hostname being advertised via MDNS. More...
|
|
uip_ipaddr_t * | resolv_getserver (void) |
| Obtain the currently configured DNS server. More...
|
|
resolv_status_t | resolv_lookup (const char *name, uip_ipaddr_t **ipaddr) |
| Look up a hostname in the array of known hostnames. More...
|
|
void | resolv_query (const char *name) |
| Queues a name so that a question for the name will be sent out. More...
|
|
void | resolv_set_hostname (const char *hostname) |
| Changes the local hostname advertised by MDNS. More...
|
|
static unsigned char * | skip_name (unsigned char *query) |
|
static void | start_name_collision_check (clock_time_t after) |
|
int | strcasecmp (const char *s1, const char *s2) |
|
int | strncasecmp (const char *s1, const char *s2, size_t n) |
|