]> git.proxmox.com Git - mirror_ovs.git/commit
conntrack: Fix conntrack new state
authorYi-Hung Wei <yihung.wei@gmail.com>
Fri, 20 Dec 2019 17:51:08 +0000 (09:51 -0800)
committerWilliam Tu <u9012063@gmail.com>
Wed, 29 Jan 2020 18:41:43 +0000 (10:41 -0800)
commita867c010ee9183885ee9d3eb76a0005c075c4d2e
treeec60c915ae56b52c998e9ea83c813a6fd4d4fc48
parent342b8904ab4f29b2a4a429e032f30ddad420a29e
conntrack: Fix conntrack new state

In connection tracking system, a connection is established if we
see packets from both directions.  However, in userspace datapath's
conntrack, if we send a connection setup packet in one direction
twice, it will make the connection to be in established state.

This patch fixes the aforementioned issue, and adds a system traffic
test for UDP and TCP traffic to avoid regression.

Fixes: a489b16854b59 ("conntrack: New userspace connection tracker.")
Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com>
Signed-off-by: William Tu <u9012063@gmail.com>
lib/conntrack-other.c
lib/conntrack-private.h
lib/conntrack-tcp.c
lib/conntrack.c
tests/system-traffic.at