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
24extern "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
39 IPV4_ADDR_INIT(93, 184, 216, 34);
40
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 */
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
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
#define IPV4_ADDR_INIT(a, b, c, d)
Static initializer for an IPv4 address.
Definition addr.h:48
IPv4 address type and helper functions definitions.
Definitions for IPv6 addresses.
Data type to represent an IPv4 address.
Definition addr.h:53
Data type to represent an IPv6 address.
Definition addr.h:72