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
* Copyright (C) 2022 Freie Universität Berlin
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
20
#ifndef NET_DNS_MOCK_H
21
#define NET_DNS_MOCK_H
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
27
#include "
net/ipv4/addr.h
"
28
#include "
net/ipv6/addr.h
"
29
33
#define SOCK_DNS_MOCK_EXAMPLE_COM_HOSTNAME "example.com"
34
38
static
const
ipv4_addr_t
sock_dns_mock_example_com_addr_ipv4
=
39
IPV4_ADDR_INIT
(93, 184, 216, 34);
40
45
static
const
ipv6_addr_t
sock_dns_mock_example_com_addr_ipv6
= { {
46
0x26, 0x06, 0x28, 0x00, 0x02, 0x20, 0x00, 0x01,
47
0x02, 0x48, 0x18, 0x93, 0x25, 0xc8, 0x19, 0x46
48
}
49
};
50
51
#ifdef __cplusplus
52
}
53
#endif
54
55
#endif
/* NET_DNS_MOCK_H */
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:38
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:45
IPV4_ADDR_INIT
#define IPV4_ADDR_INIT(a, b, c, d)
Static initializer for an IPv4 address.
Definition
addr.h:48
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:53
ipv6_addr_t
Data type to represent an IPv6 address.
Definition
addr.h:72
Generated on Sat Nov 23 2024 16:31:10 by
1.9.8