OpenVPN 3 Core Library
Loading...
Searching...
No Matches
icmp6.hpp
Go to the documentation of this file.
1
// OpenVPN -- An application to securely tunnel IP networks
2
// over a single port, with support for SSL/TLS-based
3
// session authentication and key exchange,
4
// packet encryption, packet authentication, and
5
// packet compression.
6
//
7
// Copyright (C) 2012- OpenVPN Inc.
8
//
9
// SPDX-License-Identifier: MPL-2.0 OR AGPL-3.0-only WITH openvpn3-openssl-exception
10
//
11
12
// Define the ICMPv6 header
13
14
#pragma once
15
16
#include <cstdint>
// for std::uint32_t, uint16_t, uint8_t
17
18
#include <
openvpn/ip/ip6.hpp
>
19
20
#pragma pack(push)
21
#pragma pack(1)
22
23
namespace
openvpn
{
24
25
struct
ICMPv6
26
{
27
enum
28
{
29
ECHO_REQUEST
= 128,
30
ECHO_REPLY
= 129,
31
DEST_UNREACH
= 1,
32
PACKET_TOO_BIG
= 2
33
};
34
35
struct
IPv6Header
head
;
36
37
union
{
38
struct
39
{
40
std::uint8_t
type
;
41
std::uint8_t
code
;
42
};
43
std::uint16_t
type_code
;
44
};
45
std::uint16_t
checksum
;
46
47
union
{
48
struct
49
{
50
std::uint16_t
id
;
51
std::uint16_t
seq_num
;
52
};
53
std::uint32_t
mtu
;
54
};
55
};
56
}
// namespace openvpn
57
58
#pragma pack(pop)
ip6.hpp
openvpn
Definition
ovpncli.cpp:97
openvpn::ICMPv6
Definition
icmp6.hpp:26
openvpn::ICMPv6::code
std::uint8_t code
Definition
icmp6.hpp:41
openvpn::ICMPv6::DEST_UNREACH
@ DEST_UNREACH
Definition
icmp6.hpp:31
openvpn::ICMPv6::PACKET_TOO_BIG
@ PACKET_TOO_BIG
Definition
icmp6.hpp:32
openvpn::ICMPv6::ECHO_REPLY
@ ECHO_REPLY
Definition
icmp6.hpp:30
openvpn::ICMPv6::ECHO_REQUEST
@ ECHO_REQUEST
Definition
icmp6.hpp:29
openvpn::ICMPv6::checksum
std::uint16_t checksum
Definition
icmp6.hpp:45
openvpn::ICMPv6::seq_num
std::uint16_t seq_num
Definition
icmp6.hpp:51
openvpn::ICMPv6::type
std::uint8_t type
Definition
icmp6.hpp:40
openvpn::ICMPv6::type_code
std::uint16_t type_code
Definition
icmp6.hpp:43
openvpn::ICMPv6::mtu
std::uint32_t mtu
Definition
icmp6.hpp:53
openvpn::ICMPv6::head
struct IPv6Header head
Definition
icmp6.hpp:35
openvpn::ICMPv6::id
std::uint16_t id
Definition
icmp6.hpp:50
openvpn::IPv6Header
Definition
ip6.hpp:26
openvpn
ip
icmp6.hpp
Generated by
1.9.8