netlink: Add nl_attr_type constants for big-endian values.
authorBen Pfaff <blp@nicira.com>
Wed, 19 Jan 2011 21:17:22 +0000 (13:17 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 27 Jan 2011 17:26:05 +0000 (09:26 -0800)
These are semantically identical, so they might as well share existing
values, but they help to document the endianness of attributes in Netlink
attribute policies.

Acked-by: Jesse Gross <jesse@nicira.com>
lib/netlink.h

index 5aa06a3..b1bf585 100644 (file)
@@ -83,8 +83,11 @@ enum nl_attr_type
     NL_A_UNSPEC,
     NL_A_U8,
     NL_A_U16,
     NL_A_UNSPEC,
     NL_A_U8,
     NL_A_U16,
+    NL_A_BE16 = NL_A_U16,
     NL_A_U32,
     NL_A_U32,
+    NL_A_BE32 = NL_A_U32,
     NL_A_U64,
     NL_A_U64,
+    NL_A_BE64 = NL_A_U64,
     NL_A_STRING,
     NL_A_FLAG,
     NL_A_NESTED,
     NL_A_STRING,
     NL_A_FLAG,
     NL_A_NESTED,