OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::ICMPv4 Struct Reference

#include <icmp4.hpp>

Collaboration diagram for openvpn::ICMPv4:
[legend]

Public Types

enum  {
  ECHO_REQUEST = 8 , ECHO_REPLY = 0 , DEST_UNREACH = 3 , FRAG_NEEDED = 4 ,
  MIN_DATA_SIZE = 8
}
 

Public Attributes

struct IPv4Header head
 
union { 
 
   struct { 
 
      std::uint8_t   type 
 
      std::uint8_t   code 
 
   }  
 
   std::uint16_t   type_code 
 
};  
 
std::uint16_t checksum
 
union { 
 
   struct { 
 
      std::uint16_t   id 
 
      std::uint16_t   seq_num 
 
   }  
 
   struct { 
 
      std::uint16_t   unused 
 
      std::uint16_t   nexthop_mtu 
 
   }  
 
};  
 

Detailed Description

Definition at line 24 of file icmp4.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ECHO_REQUEST 
ECHO_REPLY 
DEST_UNREACH 
FRAG_NEEDED 
MIN_DATA_SIZE 

Definition at line 26 of file icmp4.hpp.

Member Data Documentation

◆ [union]

union { ... } openvpn::ICMPv4

◆ [union]

union { ... } openvpn::ICMPv4

◆ checksum

std::uint16_t openvpn::ICMPv4::checksum

Definition at line 45 of file icmp4.hpp.

◆ code

std::uint8_t openvpn::ICMPv4::code

Definition at line 41 of file icmp4.hpp.

◆ head

struct IPv4Header openvpn::ICMPv4::head

Definition at line 35 of file icmp4.hpp.

◆ id

std::uint16_t openvpn::ICMPv4::id

Definition at line 50 of file icmp4.hpp.

◆ nexthop_mtu

std::uint16_t openvpn::ICMPv4::nexthop_mtu

Definition at line 56 of file icmp4.hpp.

◆ seq_num

std::uint16_t openvpn::ICMPv4::seq_num

Definition at line 51 of file icmp4.hpp.

◆ type

std::uint8_t openvpn::ICMPv4::type

Definition at line 40 of file icmp4.hpp.

◆ type_code

std::uint16_t openvpn::ICMPv4::type_code

Definition at line 43 of file icmp4.hpp.

◆ unused

std::uint16_t openvpn::ICMPv4::unused

Definition at line 55 of file icmp4.hpp.


The documentation for this struct was generated from the following file: