summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Huang <linhuang@ruijie.com.cn>2023-03-31 11:16:56 +0800
committerIlya Maximets <i.maximets@ovn.org>2023-04-04 17:13:33 +0200
commit0ec81356b69c2215c65caabc724a79f8da40b725 (patch)
tree978cf4ee995d2b738ec9318164597f8c19e19aa0
parentc5d371f575f4ab03d45b817f8edb6e323e348042 (diff)
downloadopenvswitch-0ec81356b69c2215c65caabc724a79f8da40b725.tar.gz
conntrack-tp: Fix clang warning.
Declaration of 'struct conn' will not be visible outside of this function. Declaration of 'struct conntrack' will not be visible outside of this function. Declaration of 'struct timeout_policy' will not be visible outside of this function. Signed-off-by: Lin Huang <linhuang@ruijie.com.cn> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
-rw-r--r--lib/conntrack-tp.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/conntrack-tp.h b/lib/conntrack-tp.h
index 4d411d19f..7ece2eae2 100644
--- a/lib/conntrack-tp.h
+++ b/lib/conntrack-tp.h
@@ -17,8 +17,15 @@
#ifndef CONNTRACK_TP_H
#define CONNTRACK_TP_H 1
+#include <stdint.h>
+
#define CT_DPIF_NETDEV_TP_MIN 30
+
enum ct_timeout;
+struct conn;
+struct conntrack;
+struct timeout_policy;
+
void timeout_policy_init(struct conntrack *ct);
int timeout_policy_update(struct conntrack *ct, struct timeout_policy *tp);
int timeout_policy_delete(struct conntrack *ct, uint32_t tp_id);