summaryrefslogtreecommitdiff
path: root/datapath-windows/include
diff options
context:
space:
mode:
authorSairam Venugopal <vsairam@vmware.com>2016-07-01 13:49:29 -0700
committerGurucharan Shetty <guru@ovn.org>2016-07-01 20:52:14 -0700
commit78f31c2b4c3e90fb72d7ae4f2cd4211b97709480 (patch)
tree8a2a2f9ef31c44cb8054fb8160e35fcf63e148ad /datapath-windows/include
parent434972b721ff5f15a848eff5dfe566ad8dbf4140 (diff)
downloadopenvswitch-78f31c2b4c3e90fb72d7ae4f2cd4211b97709480.tar.gz
datapath-windows: Add support for Conntrack IPCTNL_MSG_CT_DELETE cmd in Datapath.c
Create new NETLINK_CMD and NETLINK_FAMILY to assist in flushing conntrack entries. Modify Datapath.c to now support netfilter-netlink messages apart from the existing netfilter-generic messages. Also hookup the command handler to execute the OvsCtFlush in Conntrack.c Signed-off-by: Sairam Venugopal <vsairam@vmware.com> Acked-by: Paul-Daniel Boca <pboca@cloudbasesolutions.com> Acked-by: Nithin Raju <nithin@vmware.com> Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Diffstat (limited to 'datapath-windows/include')
-rw-r--r--datapath-windows/include/OvsDpInterfaceExt.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/datapath-windows/include/OvsDpInterfaceExt.h b/datapath-windows/include/OvsDpInterfaceExt.h
index e2353767d..8850535ad 100644
--- a/datapath-windows/include/OvsDpInterfaceExt.h
+++ b/datapath-windows/include/OvsDpInterfaceExt.h
@@ -65,6 +65,13 @@
#define OVS_WIN_NL_VPORT_FAMILY_ID (NLMSG_MIN_TYPE + 4)
#define OVS_WIN_NL_FLOW_FAMILY_ID (NLMSG_MIN_TYPE + 5)
#define OVS_WIN_NL_NETDEV_FAMILY_ID (NLMSG_MIN_TYPE + 6)
+/*
+ * Conntrack Family is defined in OvsDpInterfaceCtExt.h
+ * OVS_WIN_NL_CT_FAMILY_ID is not used in the messages, but used internally
+ * in the kernel as a placeholder to enable parsing out the ct family cmds.
+ */
+
+#define OVS_WIN_NL_CT_FAMILY_ID (NLMSG_MIN_TYPE + 7)
#define OVS_WIN_NL_INVALID_MCGRP_ID 0
#define OVS_WIN_NL_MCGRP_START_ID 100