summaryrefslogtreecommitdiff
path: root/lib
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:12:34 +0200
commite41bdb17613ba2df284f0f6aed98dbb1c2e2e081 (patch)
tree9836e70b3a1b52a4458aceb5b7ca14311e77de26 /lib
parentb5354766805ca885072d06d1cab01c4da7537d64 (diff)
downloadopenvswitch-e41bdb17613ba2df284f0f6aed98dbb1c2e2e081.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>
Diffstat (limited to 'lib')
-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);