summaryrefslogtreecommitdiff
path: root/datapath/conntrack.h
diff options
context:
space:
mode:
Diffstat (limited to 'datapath/conntrack.h')
-rw-r--r--datapath/conntrack.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/datapath/conntrack.h b/datapath/conntrack.h
index 0c3964f5b..5b4b34c19 100644
--- a/datapath/conntrack.h
+++ b/datapath/conntrack.h
@@ -18,10 +18,11 @@
#include "flow.h"
struct ovs_conntrack_info;
+struct ovs_ct_limit_info;
enum ovs_key_attr;
#if IS_ENABLED(CONFIG_NF_CONNTRACK)
-void ovs_ct_init(struct net *);
+int ovs_ct_init(struct net *);
void ovs_ct_exit(struct net *);
bool ovs_ct_verify(struct net *, enum ovs_key_attr attr);
int ovs_ct_copy_action(struct net *, const struct nlattr *,
@@ -45,7 +46,7 @@ void ovs_ct_free_action(const struct nlattr *a);
#else
#include <linux/errno.h>
-static inline void ovs_ct_init(struct net *net) { }
+static inline int ovs_ct_init(struct net *net) { return 0; }
static inline void ovs_ct_exit(struct net *net) { }
@@ -105,4 +106,8 @@ static inline void ovs_ct_free_action(const struct nlattr *a) { }
#define CT_SUPPORTED_MASK 0
#endif
+
+#if IS_ENABLED(CONFIG_NETFILTER_CONNCOUNT)
+extern struct genl_family dp_ct_limit_genl_family;
+#endif
#endif /* ovs_conntrack.h */