OpenVPN 3 Core Library
Loading...
Searching...
No Matches
eth.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 Ethernet header
13
14
#ifndef OPENVPN_IP_ETH_H
15
#define OPENVPN_IP_ETH_H
16
17
#include <cstdint>
// for std::uint32_t, uint16_t, uint8_t
18
19
#pragma pack(push)
20
#pragma pack(1)
21
22
namespace
openvpn
{
23
struct
EthHeader
24
{
25
std::uint8_t
dest_mac
[6];
26
std::uint8_t
src_mac
[6];
27
std::uint16_t
ethertype
;
28
};
29
}
// namespace openvpn
30
31
#pragma pack(pop)
32
33
#endif
openvpn
Definition
ovpncli.cpp:97
openvpn::EthHeader
Definition
eth.hpp:24
openvpn::EthHeader::src_mac
std::uint8_t src_mac[6]
Definition
eth.hpp:26
openvpn::EthHeader::ethertype
std::uint16_t ethertype
Definition
eth.hpp:27
openvpn::EthHeader::dest_mac
std::uint8_t dest_mac[6]
Definition
eth.hpp:25
openvpn
ip
eth.hpp
Generated by
1.9.8