path: root/include/network.h
diff options
authorPablo Neira Ayuso <>2009-01-15 23:19:58 +0100
committerPablo Neira Ayuso <>2009-01-15 23:19:58 +0100
commit8dce3504fde7da933dc6e7ecfeb99b4b45125f32 (patch)
tree9d12a1e54caf8a6718eb2ad5187e4e13c3791d3e /include/network.h
parent50339f96638eed35dac2b673b64cc6f1eb96406c (diff)
cache: add status field to store the object status
This patch adds the status field to the cache object. This avoids the (ab)use of the alarm to check if an entry is active or dead. This is the first step to possibly move the alarm to the cache_extra memory space of the ftfw (which is the only use by now). Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include/network.h')
1 files changed, 1 insertions, 0 deletions
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)