packets: Avoid compile errors.
authorAaron Conole <aconole@redhat.com>
Fri, 4 Sep 2015 20:53:29 +0000 (16:53 -0400)
committerBen Pfaff <blp@nicira.com>
Fri, 4 Sep 2015 23:24:04 +0000 (16:24 -0700)
commit37ba4764eba8047ccf934e8b796ba7104eec9a7a
treee108b30a825de4e37113403b065d37b9847a7443
parent4a6444e8e160edf3b0ec403c476b6b64dbd1d1f0
packets: Avoid compile errors.

Commit 74ff3298c880 (userspace: Define and use struct eth_addr.) introduced
a compilation issue due to a bad unsigned 64-bit constant, as well as an
implicit narrow.

This commit uses the C99 ULL suffix to tell the compiler to treat the
constant as 64-bits, and also masks portions of the uint64_t argument to
the htons() calls to avoid compiler errors.

Signed-off-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/packets.h
tests/test-aa.c