may be used by ACLs in order to control various criteria related
to the activity of the client matching the stick-table. For each
item specified here, the size of each entry will be inflated so
- that the additional data can fit. At the moment, only "conn_cum"
+ that the additional data can fit. At the moment, only "conn_cnt"
is supported, which can be used to store and retrieve the total
number of connections matching the entry since it was created. A
"server_id" type is also supported but it's only for internal
/* The types of extra data we can store in a stick table */
enum {
STKTABLE_DT_SERVER_ID, /* the server ID to use with this session if > 0 */
- STKTABLE_DT_CONN_CUM, /* cumulated number of connections */
+ STKTABLE_DT_CONN_CNT, /* cumulated number of connections */
STKTABLE_DATA_TYPES /* Number of data types, must always be last */
};
/* stick_table extra data. This is mainly used for casting or size computation */
union stktable_data {
- unsigned int conn_cum;
+ unsigned int conn_cnt;
int server_id;
};
/* Extra data types processing */
struct stktable_data_type stktable_data_types[STKTABLE_DATA_TYPES] = {
- [STKTABLE_DT_CONN_CUM] = { .name = "conn_cum", .data_length = stktable_data_size(conn_cum) },
+ [STKTABLE_DT_CONN_CNT] = { .name = "conn_cnt", .data_length = stktable_data_size(conn_cnt) },
[STKTABLE_DT_SERVER_ID] = { .name = "server_id", .data_length = stktable_data_size(server_id) },
};