summaryrefslogtreecommitdiff
path: root/datapath-windows/ovsext/Geneve.h
diff options
context:
space:
mode:
authorAlin Serdean <aserdean@cloudbasesolutions.com>2017-03-06 16:16:38 +0000
committerGurucharan Shetty <guru@ovn.org>2017-03-06 09:17:28 -0800
commit0efae0d0ea95f63afa5f090a6babdf122e5ff3c9 (patch)
treedb792b7a5a0cc4074fe505c800786f24a599e391 /datapath-windows/ovsext/Geneve.h
parent4309a2d483c63c4107113da155dd6121969f8e12 (diff)
downloadopenvswitch-0efae0d0ea95f63afa5f090a6babdf122e5ff3c9.tar.gz
datapath-windows: Fix GENEVE option header
The GENEVE option header is defined in big endian, however we support only little endian on Windows at the moment. This patch changes the GENEVE option header into little endian. Found while testing. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Acked-by: Yin Lin <linyi@vmware.com> Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Diffstat (limited to 'datapath-windows/ovsext/Geneve.h')
-rw-r--r--datapath-windows/ovsext/Geneve.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/datapath-windows/ovsext/Geneve.h b/datapath-windows/ovsext/Geneve.h
index be8a834ad..019c0dd9f 100644
--- a/datapath-windows/ovsext/Geneve.h
+++ b/datapath-windows/ovsext/Geneve.h
@@ -71,10 +71,10 @@ typedef struct GeneveOptionHdr {
UINT32 optionClass:16;
/* Format of data contained in the option. */
UINT32 type:8;
- /* Reserved. */
- UINT32 reserved:3;
/* Length of option in int32 excluding the option header. */
UINT32 length:5;
+ /* Reserved. */
+ UINT32 reserved:3;
} GeneveOptionHdr;
#define GENEVE_CRIT_OPT_TYPE (1 << 7)