packets: Do not use zero sized array in icmp header.
authorGurucharan Shetty <gshetty@nicira.com>
Thu, 15 Jan 2015 18:24:03 +0000 (10:24 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Fri, 16 Jan 2015 16:14:00 +0000 (08:14 -0800)
commit233c7ef3fa2aca414d2d23bc2a048d1bb928cfae
treebd0d739761641cd86661cf913992385657e66382
parent6bb81d042107ba68a7f4e6444df6d6811e733d6f
packets: Do not use zero sized array in icmp header.

Visual studio supports zero-size array within a struct or union,
but has to be the last element. GCC does not have this restriction.

icmp headers got included inside 'struct ovs_nd_msg' through
commit e60e935b1f (Implement set-field for IPv6 ND fields (nd_target,
nd_sll,and nd_tll). This causes compilation error while using MSVC.

Since icmp[6]_data in the icmp[6]_header is not used anywhere, just remove
them.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/packets.h