dns_mock.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2022 Freie Universität Berlin
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 #include "net/ipv4/addr.h"
25 #include "net/ipv6/addr.h"
26 
30 #define SOCK_DNS_MOCK_EXAMPLE_COM_HOSTNAME "example.com"
31 
36  IPV4_ADDR_INIT(93, 184, 216, 34);
37 
43  0x26, 0x06, 0x28, 0x00, 0x02, 0x20, 0x00, 0x01,
44  0x02, 0x48, 0x18, 0x93, 0x25, 0xc8, 0x19, 0x46
45  }
46 };
47 
48 #ifdef __cplusplus
49 }
50 #endif
51 
static const ipv4_addr_t sock_dns_mock_example_com_addr_ipv4
IPv4 address for SOCK_DNS_MOCK_EXAMPLE_COM_HOSTNAME.
Definition: dns_mock.h:35
static const ipv6_addr_t sock_dns_mock_example_com_addr_ipv6
IPv6 address for SOCK_DNS_MOCK_EXAMPLE_COM_HOSTNAME.
Definition: dns_mock.h:42
#define IPV4_ADDR_INIT(a, b, c, d)
Static initializer for an IPv4 address.
Definition: addr.h:45
IPv4 address type and helper functions definitions.
Definitions for IPv6 addresses.
Data type to represent an IPv4 address.
Definition: addr.h:55
Data type to represent an IPv6 address.
Definition: addr.h:64