Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
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
19
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
35
static
const
ipv4_addr_t
sock_dns_mock_example_com_addr_ipv4
=
36
IPV4_ADDR_INIT
(93, 184, 216, 34);
37
42
static
const
ipv6_addr_t
sock_dns_mock_example_com_addr_ipv6
= { {
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
sock_dns_mock_example_com_addr_ipv4
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
sock_dns_mock_example_com_addr_ipv6
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
IPV4_ADDR_INIT
#define IPV4_ADDR_INIT(a, b, c, d)
Static initializer for an IPv4 address.
Definition
addr.h:45
addr.h
IPv4 address type and helper functions definitions.
addr.h
Definitions for IPv6 addresses.
ipv4_addr_t
Data type to represent an IPv4 address.
Definition
addr.h:55
ipv6_addr_t
Data type to represent an IPv6 address.
Definition
addr.h:64
Generated on Sat Jul 25 2026 00:53:09 by
1.13.2