]> git.proxmox.com Git - ovs.git/commit
packets: Use WORDS_BIGENDIAN for struct geneve_opt.
authorJesse Gross <jesse@nicira.com>
Fri, 31 Oct 2014 23:47:45 +0000 (16:47 -0700)
committerJesse Gross <jesse@nicira.com>
Mon, 3 Nov 2014 15:00:05 +0000 (07:00 -0800)
commitbd8bf90f721bef30a819d0eddd7daa0f1dd64007
tree24288234b6a70efcf6cde3f809f997b597eb3690
parent712b4d2470ed2e8cfe6bb16080d7e9d54003061a
packets: Use WORDS_BIGENDIAN for struct geneve_opt.

The macro LITTLE_ENDIAN is a constant, not a test for endianness,
so it doesn't actually tell us anything about the machine.
WORDS_BIGENDIAN is both correct and defined by configure so it is
more portable.

Reported-by: Ben Pfaff <blp@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/packets.h