From 08288ce0bd23d5fe87cac47e777ce34d52e74efe Mon Sep 17 00:00:00 2001 From: Ankur Sharma Date: Fri, 26 Sep 2014 17:32:12 -0700 Subject: datapath-windows: move OVS_MESSAGE to Netlink.h Moved the structure OVS_MESSAGE to Netlink.h. This change is done for following reasons. a. Patch 2 in this series provides a generic API in Netlink.c for creating netlink message. That API needs OVS_MESSAGE. Including Datapath.h in Netlink.c/h gives compilation error. b. OVS_MESSAGE defines netlink messages hence moving it to Netlink.h looked fine to me. Signed-off-by: Ankur Sharma Acked-by: Alin Gabriel Serdean Acked-by: Eitan Eliahu Acked-by: Nithin Raju Acked-by: Samuel Ghinet Tested-by: Ankur Sharma Signed-off-by: Ben Pfaff --- datapath-windows/ovsext/Netlink/Netlink.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'datapath-windows/ovsext/Netlink') diff --git a/datapath-windows/ovsext/Netlink/Netlink.h b/datapath-windows/ovsext/Netlink/Netlink.h index 6ecbdc5db..b03672334 100644 --- a/datapath-windows/ovsext/Netlink/Netlink.h +++ b/datapath-windows/ovsext/Netlink/Netlink.h @@ -20,6 +20,17 @@ #include "Types.h" #include "NetlinkProto.h" #include "NetlinkBuf.h" +#include "..\..\include\OvsDpInterface.h" + +/* + * Structure of any message passed between userspace and kernel. + */ +typedef struct _OVS_MESSAGE { + NL_MSG_HDR nlMsg; + GENL_MSG_HDR genlMsg; + OVS_HDR ovsHdr; + /* Variable length nl_attrs follow. */ +} OVS_MESSAGE, *POVS_MESSAGE; /* Netlink attribute types. */ typedef enum -- cgit v1.2.1