From 75fb86b0dbf6863194312de9754dcd8abdb80922 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 26 Jan 2012 12:50:45 -0800 Subject: [PATCH] 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 --- include/openflow/nicira-ext.h | 1 + 1 file changed, 1 insertion(+) 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. */ -- 2.43.0