pp2_header Struct Reference

PROXYv2 header. More...

#include <proxy_protocol.h>

Data Fields

uint8_t sig [PP2_SIG_LEN]
 
uint8_t ver_cmd
 
uint8_t fam_prot
 
uint16_t len
 
union {
   struct {
      uint32_t   src_addr
 
      uint32_t   dst_addr
 
      uint16_t   src_port
 
      uint16_t   dst_port
 
   }   addr4
 
   struct {
      uint8_t   src_addr [16]
 
      uint8_t   dst_addr [16]
 
      uint16_t   src_port
 
      uint16_t   dst_port
 
   }   addr6
 
   struct {
      uint8_t   src_addr [108]
 
      uint8_t   dst_addr [108]
 
   }   addru
 
addr
 

Detailed Description

PROXYv2 header.


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