diff --git a/include/proto/stick_table.h b/include/proto/stick_table.h index e1a324d73..87a550b86 100644 --- a/include/proto/stick_table.h +++ b/include/proto/stick_table.h @@ -28,6 +28,8 @@ #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); diff --git a/src/stick_table.c b/src/stick_table.c index 017362f70..9f7feddab 100644 --- a/src/stick_table.c +++ b/src/stick_table.c @@ -29,8 +29,8 @@ #include -/* 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 , and decrease sticky sessions counter