This one is huge and will be needed by other portions of code for various
data lookups. Let's not have them allocate it in the stack.
#define stktable_data_size(type) (sizeof(((union stktable_data*)0)->type))
#define stktable_data_cast(ptr, type) ((union stktable_data*)(ptr))->type
+extern struct stktable_key static_table_key;
+
struct stksess *stksess_new(struct stktable *t, struct stktable_key *key);
void stksess_setkey(struct stktable *t, struct stksess *ts, struct stktable_key *key);
void stksess_free(struct stktable *t, struct stksess *ts);
#include <proto/task.h>
-/* static structure used to return a table key built from a pattern */
-static struct stktable_key static_table_key;
+/* structure used to return a table key built from a pattern */
+struct stktable_key static_table_key;
/*
* Free an allocated sticky session <ts>, and decrease sticky sessions counter