Hybrid ICN (hICN)  v19.08-58-gd173417
Classes | Macros
header.h File Reference

hICN header data structures. More...

#include "common.h"
#include "protocol.h"
Include dependency graph for header.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  hicn_v6_hdr_t
 
struct  hicn_v6ah_hdr_t
 
struct  hicn_v4_hdr_t
 
struct  hicn_v4ah_hdr_t
 
union  hicn_header_t
 

Macros

#define HICN_V6_TCP_HDRLEN   (IPV6_HDRLEN + TCP_HDRLEN)
 
#define HICN_V6_ICMP_HDRLEN   (IPV6_HDRLEN + ICMP_HDRLEN)
 
#define HICN_V6_WLDR_HDRLEN   (IPV6_HDRLEN + ICMPWLDR_HDRLEN)
 
#define HICN_V6_TCP_AH_HDRLEN   (HICN_V6_TCP_HDRLEN + AH_HDRLEN)
 
#define HICN_V6_ICMP_AH_HDRLEN   (HICN_V6_ICMP_HDRLEN + AH_HDRLEN)
 
#define HICN_V4_TCP_HDRLEN   (IPV4_HDRLEN + TCP_HDRLEN)
 
#define HICN_V4_ICMP_HDRLEN   (IPV4_HDRLEN + ICMP_HDRLEN)
 
#define HICN_V4_WLDR_HDRLEN   (IPV4_HDRLEN + ICMPWLDR_HDRLEN)
 
#define HICN_V4_TCP_AH_HDRLEN   (HICN_V4_TCP_HDRLEN + AH_HDRLEN)
 
#define HICN_V4_ICMP_AH_HDRLEN   (HICN_V4_ICMP_HDRLEN + AH_HDRLEN)
 

Detailed Description

hICN header data structures.

NOTE: These structures are used as convenient facade for accessing the encapsulated headers. They are not written taking compiler padding into account, then a sizeof() on these struct could not give the expected result. For accessing the size of the hicn headers use the macros at the end of this file.