X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fvxlan-gpe%2Fvxlan_gpe_packet.h;h=f5e5ddc2347b7c60bf08a0d69148153181506014;hb=ab11ec9ab94ffdf164daa2b5006dab4e388a966e;hp=ec3c2e586e1a61d8f876de8ffa4da9346e784e2a;hpb=7cd468a3d7dee7d6c92f69a0bb7061ae208ec727;p=vpp.git 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: + */