diff options
author | Sairam Venugopal <vsairam@vmware.com> | 2016-12-16 14:28:12 -0800 |
---|---|---|
committer | Gurucharan Shetty <guru@ovn.org> | 2016-12-20 09:33:30 -0800 |
commit | e68988b8afea1cb3c3c07f9e67aedc07b49bce75 (patch) | |
tree | 257f93edab910dd98c4d71aeb45eb3b756c3e6b2 /datapath-windows/ovsext/Switch.c | |
parent | 7fd123b627f35a7da6aa534276760405d66ccbbe (diff) | |
download | openvswitch-e68988b8afea1cb3c3c07f9e67aedc07b49bce75.tar.gz |
datapath-windows: Conntrack - Enable FTP support
Enable the support for tracking FTP connections in the Connection tracker.
This checks an incoming ftp control connection to extract the related data
connection. When a matching data connection arrives, it would then update
the connection entry to point to the original control connection.
Signed-off-by: Sairam Venugopal <vsairam@vmware.com>
Acked-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Diffstat (limited to 'datapath-windows/ovsext/Switch.c')
-rw-r--r-- | datapath-windows/ovsext/Switch.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/datapath-windows/ovsext/Switch.c b/datapath-windows/ovsext/Switch.c index db023e987..138a656ce 100644 --- a/datapath-windows/ovsext/Switch.c +++ b/datapath-windows/ovsext/Switch.c @@ -225,6 +225,13 @@ OvsCreateSwitch(NDIS_HANDLE ndisFilterHandle, goto create_switch_done; } + status = OvsInitCtRelated(switchContext); + if (status != STATUS_SUCCESS) { + OvsUninitSwitchContext(switchContext); + OVS_LOG_ERROR("Exit: Failed to initialize Connection tracking"); + goto create_switch_done; + } + *switchContextOut = switchContext; create_switch_done: @@ -257,6 +264,7 @@ OvsExtDetach(NDIS_HANDLE filterModuleContext) OvsCleanupIpHelper(); OvsCleanupSttDefragmentation(); OvsCleanupConntrack(); + OvsCleanupCtRelated(); /* This completes the cleanup, and a new attach can be handled now. */ OVS_LOG_TRACE("Exit: OvsDetach Successfully"); |