From 8fc55661c57b26ab84a2baa5ef235f1a79c20633 Mon Sep 17 00:00:00 2001 From: Jesse Gross Date: Tue, 7 Apr 2015 17:57:36 -0700 Subject: [PATCH] packet: Avoid array of struct with zero length member. Windows doesn't like that the Geneve header has an array of options with each have a zero length member (the variable data). Nothing is accessing the data now, so just replace the member with a comment - we can use pointer arithmetic when necessary. Reported-by: Gurucharan Shetty Signed-off-by: Jesse Gross --- lib/packets.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/packets.h b/lib/packets.h index 29ea54f0f85..b146a5069e2 100644 --- a/lib/packets.h +++ b/lib/packets.h @@ -730,7 +730,7 @@ struct geneve_opt { uint8_t r2:1; uint8_t r1:1; #endif - uint8_t opt_data[]; + /* Option data */ }; struct genevehdr {