From: Ben Pfaff Date: Thu, 26 Jan 2012 20:50:45 +0000 (-0800) Subject: nicira-ext: Add size check for struct nx_role_request. X-Git-Tag: sliver-openvswitch-0.1-1~386 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;ds=sidebyside;h=75fb86b0dbf6863194312de9754dcd8abdb80922;p=sliver-openvswitch.git nicira-ext: Add size check for struct nx_role_request. We try to have such a size check every protocol structure. Signed-off-by: Ben Pfaff --- diff --git a/include/openflow/nicira-ext.h b/include/openflow/nicira-ext.h index 69218037f..62180a729 100644 --- 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. */