FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
ip4_header_t Union Reference
+ Collaboration diagram for ip4_header_t:

Public Member Functions

 CLIB_PACKED (struct { u64 checksum_data_64[2];u32 checksum_data_64_32[1];})
 
 CLIB_PACKED (struct { u32 checksum_data_32[5];})
 

Data Fields

struct {
   u8   ip_version_and_header_length
 
   ip_dscp_t   tos
 
   u16   length
 
   u16   fragment_id
 
   u16   flags_and_fragment_offset
 
   u8   ttl
 
   u8   protocol
 
   u16   checksum
 
   union {
      struct {
         ip4_address_t   src_address
 
         ip4_address_t   dst_address
 
      } 
 
      ip4_address_pair_t   address_pair
 
   } 
 
}; 
 

Detailed Description

Definition at line 87 of file ip4_packet.h.

Member Function Documentation

◆ CLIB_PACKED() [1/2]

ip4_header_t::CLIB_PACKED ( struct { u64 checksum_data_64[2];u32 checksum_data_64_32[1];}  )

◆ CLIB_PACKED() [2/2]

ip4_header_t::CLIB_PACKED ( struct { u32 checksum_data_32[5];}  )

Field Documentation

◆ @366

struct { ... }

◆ address_pair

ip4_address_pair_t ip4_header_t::address_pair

Definition at line 127 of file ip4_packet.h.

◆ checksum

u16 ip4_header_t::checksum

Definition at line 118 of file ip4_packet.h.

◆ dst_address

ip4_address_t ip4_header_t::dst_address

Definition at line 125 of file ip4_packet.h.

◆ flags_and_fragment_offset

u16 ip4_header_t::flags_and_fragment_offset

Definition at line 106 of file ip4_packet.h.

◆ fragment_id

u16 ip4_header_t::fragment_id

Definition at line 102 of file ip4_packet.h.

◆ ip_version_and_header_length

u8 ip4_header_t::ip_version_and_header_length

Definition at line 93 of file ip4_packet.h.

◆ length

u16 ip4_header_t::length

Definition at line 99 of file ip4_packet.h.

◆ protocol

u8 ip4_header_t::protocol

Definition at line 115 of file ip4_packet.h.

◆ src_address

ip4_address_t ip4_header_t::src_address

Definition at line 125 of file ip4_packet.h.

◆ tos

ip_dscp_t ip4_header_t::tos

Definition at line 96 of file ip4_packet.h.

◆ ttl

u8 ip4_header_t::ttl

Definition at line 112 of file ip4_packet.h.


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