From 792d377d8330606ad122dae5f941e5088c10cf14 Mon Sep 17 00:00:00 2001 From: Sairam Venugopal Date: Wed, 13 Apr 2016 11:54:03 -0700 Subject: datapath-windows: Add Connection Tracking Support Enable support for Stateful Firewall in Hyper-V by adding a Connection Tracking module. The module has been ported over from the userspace implementation patch of a similar name. The current version of the module supports ct - zone, mark and label for TCP packets. Support for other packet formats will be added in subsequent patches. The conntrack-tcp module is adapted from FreeBSD's pf subsystem and hence the BSD license. It has been ported over to match OVS Hyper-V coding style. Signed-off-by: Sairam Venugopal Signed-off-by: Daniele Di Proietto Co-Authored-by: Daniele Di Proietto Acked-by: Nithin Raju Signed-off-by: Ben Pfaff --- datapath-windows/ovsext/DpInternal.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'datapath-windows/ovsext/DpInternal.h') diff --git a/datapath-windows/ovsext/DpInternal.h b/datapath-windows/ovsext/DpInternal.h index d26833f50..a3ce311cc 100644 --- a/datapath-windows/ovsext/DpInternal.h +++ b/datapath-windows/ovsext/DpInternal.h @@ -167,6 +167,13 @@ typedef __declspec(align(8)) struct OvsFlowKey { }; UINT32 recircId; /* Recirculation ID. */ UINT32 dpHash; /* Datapath calculated hash value. */ + struct { + /* Connection tracking fields. */ + UINT16 zone; + UINT32 mark; + UINT32 state; + struct ovs_key_ct_labels labels; + } ct; /* Connection Tracking Flags */ } OvsFlowKey; #define OVS_WIN_TUNNEL_KEY_SIZE (sizeof (OvsIPv4TunnelKey)) -- cgit v1.2.1