From 0efae0d0ea95f63afa5f090a6babdf122e5ff3c9 Mon Sep 17 00:00:00 2001 From: Alin Serdean Date: Mon, 6 Mar 2017 16:16:38 +0000 Subject: 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 Acked-by: Yin Lin Signed-off-by: Gurucharan Shetty --- datapath-windows/ovsext/Geneve.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'datapath-windows/ovsext/Geneve.h') 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) -- cgit v1.2.1