diff options
author | Jinjun Gao <jinjung@vmware.com> | 2020-06-30 19:47:57 +0800 |
---|---|---|
committer | Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> | 2020-06-30 17:24:07 +0300 |
commit | 28b3e3ba0db5f10f875679d2a1535e13e4994e0e (patch) | |
tree | 571c3849d421221c5c56dba393f8be3c6ca6eb39 /datapath-windows/ovsext/Conntrack-related.c | |
parent | f740828d82234ccd026fcbc9a49d230d72667330 (diff) | |
download | openvswitch-28b3e3ba0db5f10f875679d2a1535e13e4994e0e.tar.gz |
datapath-windows: Add CTA_HELP and CTA_TUPLE_MASTER
Add helper and master if existing to a conntrack entry:
1, For CTA_HELP, only support FTP/TFTP;
2, For CTA_TUPLE_MASTER, only support FTP.
Signed-off-by: Jinjun Gao <jinjung@vmware.com>
Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org>
Diffstat (limited to 'datapath-windows/ovsext/Conntrack-related.c')
-rw-r--r-- | datapath-windows/ovsext/Conntrack-related.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/datapath-windows/ovsext/Conntrack-related.c b/datapath-windows/ovsext/Conntrack-related.c index 950be98e9..a5bba5cf8 100644 --- a/datapath-windows/ovsext/Conntrack-related.c +++ b/datapath-windows/ovsext/Conntrack-related.c @@ -47,8 +47,11 @@ OvsCtRelatedKeyAreSame(OVS_CT_KEY incomingKey, OVS_CT_KEY entryKey) } /* FTP ACTIVE - Server initiates the connection */ + /* Some ftp server, such as pyftpdlib, may use random (>1024) data port + * except 20. In this case, the incomingKey's src port is different with + * entryKey's src port. + */ if ((incomingKey.src.addr.ipv4 == entryKey.src.addr.ipv4) && - (incomingKey.src.port == entryKey.src.port) && (incomingKey.dst.addr.ipv4 == entryKey.dst.addr.ipv4) && (incomingKey.dst.port == entryKey.dst.port) && (incomingKey.dl_type == entryKey.dl_type) && |