projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f19a2a
)
nicira-ext: Add size check for struct nx_role_request.
author
Ben Pfaff
<blp@nicira.com>
Thu, 26 Jan 2012 20:50:45 +0000
(12:50 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Thu, 2 Feb 2012 20:54:42 +0000
(12:54 -0800)
We try to have such a size check every protocol structure.
Signed-off-by: Ben Pfaff <blp@nicira.com>
include/openflow/nicira-ext.h
patch
|
blob
|
history
diff --git
a/include/openflow/nicira-ext.h
b/include/openflow/nicira-ext.h
index 69218037f66ea7db9822eaf718ebaf75b0b88376..62180a729afded247faaa4e555d94e9c5e5b4ad3 100644
(file)
--- a/
include/openflow/nicira-ext.h
+++ b/
include/openflow/nicira-ext.h
@@
-276,6
+276,7
@@
struct nx_role_request {
struct nicira_header nxh;
ovs_be32 role; /* One of NX_ROLE_*. */
};
+OFP_ASSERT(sizeof(struct nx_role_request) == 20);
enum nx_role {
NX_ROLE_OTHER, /* Default role, full access. */