summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJesse Gross <jesse@nicira.com>2015-04-07 17:57:36 -0700
committerJesse Gross <jesse@nicira.com>2015-04-07 17:57:36 -0700
commit8fc55661c57b26ab84a2baa5ef235f1a79c20633 (patch)
treef166012a79ea0d0de7fe0a4844269e9ac8d9f91b /lib
parent8e45fe7c9e20a068a879d8e39cf14c551b9d77ef (diff)
downloadopenvswitch-8fc55661c57b26ab84a2baa5ef235f1a79c20633.tar.gz
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 <shettyg@nicira.com> Signed-off-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/packets.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/packets.h b/lib/packets.h
index 29ea54f0f..b146a5069 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 {