Macros | Functions | Variables
resolv.c File Reference

    DNS host name to IP address resolver.

#include "net/ipv6/tcpip.h"
#include "net/ipv6/uip-udp-packet.h"
#include "net/ipv6/uip-nameserver.h"
#include "lib/random.h"
#include "resolv.h"
#include "sys/log.h"
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include "net/ipv6/uip-ds6.h"

Go to the source code of this file.


 The maximum number of retries when asking for a name. More...


static void newdata (void)
void resolv_set_hostname (const char *hostname)
 Changes the local hostname advertised by MDNS. More...
const char * resolv_get_hostname (void)
 Returns the local hostname being advertised via MDNS. More...
void resolv_query (const char *name)
 Queues a name so that a question for the name will be sent out. More...
resolv_status_t resolv_lookup (const char *name, uip_ipaddr_t **ipaddr)
 Look up a hostname in the array of known hostnames. More...


process_event_t resolv_event_found
 Event that is broadcasted when a DNS name has been resolved.

Detailed Description

    DNS host name to IP address resolver.
Adam Dunkels
Robert Quattlebaum
    This file implements a DNS host name to IP address resolver,
    as well as an MDNS responder and resolver.

Definition in file resolv.c.