Loading...
Searching...
No Matches
DNS defines

Generic DNS mock values. More...

Detailed Description

Generic DNS mock values.

Files

file  dns_mock.h
 Generic DNS mock values.
 

Macros

#define SOCK_DNS_MOCK_EXAMPLE_COM_HOSTNAME   "example.com"
 Hostname used to query.
 

Variables

static const ipv4_addr_t sock_dns_mock_example_com_addr_ipv4
 IPv4 address for SOCK_DNS_MOCK_EXAMPLE_COM_HOSTNAME.
 
static const ipv6_addr_t sock_dns_mock_example_com_addr_ipv6
 IPv6 address for SOCK_DNS_MOCK_EXAMPLE_COM_HOSTNAME.
 

Macro Definition Documentation

◆ SOCK_DNS_MOCK_EXAMPLE_COM_HOSTNAME

#define SOCK_DNS_MOCK_EXAMPLE_COM_HOSTNAME   "example.com"

Hostname used to query.

Definition at line 33 of file dns_mock.h.

Variable Documentation

◆ sock_dns_mock_example_com_addr_ipv4

const ipv4_addr_t sock_dns_mock_example_com_addr_ipv4
static
Initial value:
=
IPV4_ADDR_INIT(93, 184, 216, 34)
#define IPV4_ADDR_INIT(a, b, c, d)
Static initializer for an IPv4 address.
Definition addr.h:48

IPv4 address for SOCK_DNS_MOCK_EXAMPLE_COM_HOSTNAME.

Definition at line 38 of file dns_mock.h.

◆ sock_dns_mock_example_com_addr_ipv6

const ipv6_addr_t sock_dns_mock_example_com_addr_ipv6
static
Initial value:
= { {
0x26, 0x06, 0x28, 0x00, 0x02, 0x20, 0x00, 0x01,
0x02, 0x48, 0x18, 0x93, 0x25, 0xc8, 0x19, 0x46
}
}

IPv6 address for SOCK_DNS_MOCK_EXAMPLE_COM_HOSTNAME.

Address represents "2606:2800:220:1:248:1893:25c8:1946".

Definition at line 45 of file dns_mock.h.