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
19
20#pragma pack(push)
21#pragma pack(1)
22
23namespace openvpn {
24
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)
struct in6_addr saddr
Definition ip6.hpp:35
std::uint8_t hop_limit
Definition ip6.hpp:33
std::uint16_t payload_len
Definition ip6.hpp:31
std::uint8_t flow_lbl[3]
Definition ip6.hpp:29
struct in6_addr daddr
Definition ip6.hpp:36
std::uint8_t version_prio
Definition ip6.hpp:27
std::uint8_t nexthdr
Definition ip6.hpp:32