]> git.proxmox.com Git - mirror_ovs.git/blobdiff - lib/conntrack-other.c
conntrack: Fix conntrack new state
[mirror_ovs.git] / lib / conntrack-other.c
index 932f2f4ad9c6dcf8d689d8cf6b30a8f0fb5e911f..de22ef87cc19663cdcfd2f24696a62e1617d1575 100644 (file)
@@ -47,16 +47,18 @@ other_conn_update(struct conntrack *ct, struct conn *conn_,
                   struct dp_packet *pkt OVS_UNUSED, bool reply, long long now)
 {
     struct conn_other *conn = conn_other_cast(conn_);
+    enum ct_update_res ret = CT_UPDATE_VALID;
 
     if (reply && conn->state != OTHERS_BIDIR) {
         conn->state = OTHERS_BIDIR;
     } else if (conn->state == OTHERS_FIRST) {
         conn->state = OTHERS_MULTIPLE;
+        ret = CT_UPDATE_VALID_NEW;
     }
 
     conn_update_expiration(ct, &conn->up, other_timeouts[conn->state], now);
 
-    return CT_UPDATE_VALID;
+    return ret;
 }
 
 static bool