projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33cada0
)
netlink: Add nl_attr_type constants for big-endian values.
author
Ben Pfaff
<blp@nicira.com>
Wed, 19 Jan 2011 21:17:22 +0000
(13:17 -0800)
committer
Ben 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
patch
|
blob
|
history
diff --git
a/lib/netlink.h
b/lib/netlink.h
index 5aa06a3ffa2a7dfafeeeab817e75b4f70426b8d5..b1bf5858b530ab9763069de6bf43b46355715950 100644
(file)
--- a/
lib/netlink.h
+++ b/
lib/netlink.h
@@
-83,8
+83,11
@@
enum nl_attr_type
NL_A_UNSPEC,
NL_A_U8,
NL_A_U16,
+ NL_A_BE16 = NL_A_U16,
NL_A_U32,
+ NL_A_BE32 = NL_A_U32,
NL_A_U64,
+ NL_A_BE64 = NL_A_U64,
NL_A_STRING,
NL_A_FLAG,
NL_A_NESTED,