Add types and accessors for working with half-aligned 64-bit values.
authorBen Pfaff <blp@nicira.com>
Sat, 5 Feb 2011 21:14:47 +0000 (13:14 -0800)
committerBen Pfaff <blp@nicira.com>
Sat, 5 Feb 2011 21:14:47 +0000 (13:14 -0800)
commit7bef2c918ac077da2156697ca821820e56561b9e
treea1fbda17f89264d7fe158492123ea07fb27d138e
parentcc2f1abfed0501550af32d2928ec3c4417f78f0a
Add types and accessors for working with half-aligned 64-bit values.

Both OpenFlow and Netlink contain 64-bit fields that are only guaranteed
to be aligned on 32-bit boundaries.  This commit introduces types for
representing these fields and functions for working with them.  Followup
commits will make the OpenFlow and Netlink code use these types and
functions.
include/openvswitch/types.h
lib/unaligned.h