summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/cache.h8
-rw-r--r--include/network.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/include/cache.h b/include/cache.h
index dcd6bcd..fd8e05f 100644
--- a/include/cache.h
+++ b/include/cache.h
@@ -23,11 +23,19 @@ enum {
};
#define CACHE_MAX_FEATURE __CACHE_MAX_FEATURE
+enum {
+ C_OBJ_NONE = 0, /* not in the cache */
+ C_OBJ_NEW, /* just added to the cache */
+ C_OBJ_ALIVE, /* in the cache, alive */
+ C_OBJ_DEAD /* still in the cache, but dead */
+};
+
struct cache;
struct cache_object {
struct hashtable_node hashnode;
struct nf_conntrack *ct;
struct cache *cache;
+ int status;
struct alarm_block alarm;
char data[0];
};
diff --git a/include/network.h b/include/network.h
index 619ce3e..f02d920 100644
--- a/include/network.h
+++ b/include/network.h
@@ -30,6 +30,7 @@ int nethdr_size(int len);
void nethdr_set(struct nethdr *net, int type);
void nethdr_set_ack(struct nethdr *net);
void nethdr_set_ctl(struct nethdr *net);
+int object_status_to_network_type(int status);
#define NETHDR_DATA(x) \
(struct netattr *)(((char *)x) + NETHDR_SIZ)