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-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75fb86b0dbf6863194312de9754dcd8abdb80922;p=openvswitch 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 69218037..62180a72 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. */