Skip to content

Commit

Permalink
packet: Avoid array of struct with zero length member.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jesse Gross <[email protected]>
  • Loading branch information
jessegross committed Apr 8, 2015
1 parent 8e45fe7 commit 8fc5566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/packets.h
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ struct geneve_opt {
uint8_t r2:1;
uint8_t r1:1;
#endif
uint8_t opt_data[];
/* Option data */
};

struct genevehdr {
Expand Down

0 comments on commit 8fc5566

Please sign in to comment.