OpenVPN 3 Core Library
Loading...
Searching...
No Matches
ip6.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
// IPv6 header
13
14
#pragma once
15
16
#include <cstdint>
// for std::uint32_t, uint16_t, uint8_t
17
18
#include <
openvpn/common/socktypes.hpp
>
19
20
#pragma pack(push)
21
#pragma pack(1)
22
23
namespace
openvpn
{
24
25
struct
IPv6Header
26
{
27
std::uint8_t
version_prio
;
28
29
std::uint8_t
flow_lbl
[3];
30
31
std::uint16_t
payload_len
;
32
std::uint8_t
nexthdr
;
33
std::uint8_t
hop_limit
;
34
35
struct
in6_addr
saddr
;
36
struct
in6_addr
daddr
;
37
};
38
}
// namespace openvpn
39
40
#pragma pack(pop)
openvpn
Definition
ovpncli.cpp:97
socktypes.hpp
openvpn::IPv6Header
Definition
ip6.hpp:26
openvpn::IPv6Header::saddr
struct in6_addr saddr
Definition
ip6.hpp:35
openvpn::IPv6Header::hop_limit
std::uint8_t hop_limit
Definition
ip6.hpp:33
openvpn::IPv6Header::payload_len
std::uint16_t payload_len
Definition
ip6.hpp:31
openvpn::IPv6Header::flow_lbl
std::uint8_t flow_lbl[3]
Definition
ip6.hpp:29
openvpn::IPv6Header::daddr
struct in6_addr daddr
Definition
ip6.hpp:36
openvpn::IPv6Header::version_prio
std::uint8_t version_prio
Definition
ip6.hpp:27
openvpn::IPv6Header::nexthdr
std::uint8_t nexthdr
Definition
ip6.hpp:32
openvpn
ip
ip6.hpp
Generated by
1.9.8