packet: Avoid array of struct with zero length member.
authorJesse Gross <jesse@nicira.com>
Wed, 8 Apr 2015 00:57:36 +0000 (17:57 -0700)
committerJesse Gross <jesse@nicira.com>
Wed, 8 Apr 2015 00:57:36 +0000 (17:57 -0700)
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 <shettyg@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
lib/packets.h

index 29ea54f..b146a50 100644 (file)
@@ -730,7 +730,7 @@ struct geneve_opt {
     uint8_t   r2:1;
     uint8_t   r1:1;
 #endif
-    uint8_t   opt_data[];
+    /* Option data */
 };
 
 struct genevehdr {