diff options
Diffstat (limited to 'src/vnet/vxlan-gpe/vxlan_gpe_packet.h')
-rw-r--r-- | src/vnet/vxlan-gpe/vxlan_gpe_packet.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/vnet/vxlan-gpe/vxlan_gpe_packet.h b/src/vnet/vxlan-gpe/vxlan_gpe_packet.h index ec3c2e586e1..f5e5ddc2347 100644 --- a/src/vnet/vxlan-gpe/vxlan_gpe_packet.h +++ b/src/vnet/vxlan-gpe/vxlan_gpe_packet.h @@ -31,13 +31,13 @@ * | VXLAN Network Identifier (VNI) | Reserved | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * - * I Bit: Flag bit 4 indicates that the VNI is valid. + * I Bit: Flag bit 4 indicates that the VNI is valid. * * P Bit: Flag bit 5 is defined as the Next Protocol bit. The P bit * MUST be set to 1 to indicate the presence of the 8 bit next * protocol field. * - * O Bit: Flag bit 7 is defined as the O bit. When the O bit is set to 1, + * O Bit: Flag bit 7 is defined as the O bit. When the O bit is set to 1, * * the packet is an OAM packet and OAM processing MUST occur. The OAM * protocol details are out of scope for this document. As with the @@ -80,17 +80,19 @@ _ (0x05, IOAM) * 4 - NSH * 5 - IOAM */ -typedef enum { +typedef enum +{ #define _(n,f) VXLAN_GPE_PROTOCOL_##f = n, foreach_vxlan_gpe_protocol #undef _ - VXLAN_GPE_PROTOCOL_MAX, + VXLAN_GPE_PROTOCOL_MAX, } vxlan_gpe_protocol_t; /** * @brief VXLAN GPE Header definition */ -typedef struct { +typedef struct +{ u8 flags; /** Version and Reserved */ u8 ver_res; @@ -108,3 +110,11 @@ typedef struct { #define VXLAN_GPE_VERSION 0x0 #endif /* included_vxlan_gpe_packet_h */ + +/* + * fd.io coding-style-patch-verification: ON + * + * Local Variables: + * eval: (c-set-style "gnu") + * End: + */ |