hosts.h File Reference

Static mappings from hostnames to IP addresses. More...

Detailed Description

Static mappings from hostnames to IP addresses.

Author
Benjamin Valentin benja.nosp@m.min..nosp@m.valen.nosp@m.tin@.nosp@m.ml-pa.nosp@m..com

Definition in file hosts.h.

#include "flash_utils.h"
#include "net/ipv4/addr.h"
#include "net/ipv6/addr.h"
#include "xfa.h"
+ Include dependency graph for hosts.h:

Go to the source code of this file.

Data Structures

struct  hostnames_v4_xfa_t
 A single IPv4 host in the list of hostnames. More...
 
struct  hostnames_v6_xfa_t
 A single IPv6 host in the list of hostnames. More...
 

Macros

#define HOST_IPV4(host, ip)
 Define IPv4 host. More...
 
#define HOST_IPV6(host, ip)
 Define IPv6 host. More...
 

Functions

int hosts_query (const char *host_name, void *addr_out, int family)
 Get IP address for a host name. More...