Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Main Page
Related Pages
Supported Boards
Modules
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Enumerations
Data Structures
Data Structures
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
w
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerator
Related Symbols
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
p
q
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
►
RIOT OS
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
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
};
45
static
const
ipv6_addr_t
sock_dns_mock_example_com_addr_ipv6
= { {
…
};
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 Wed Apr 2 2025 12:57:35 by
1.12.0