]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: global: Few new struct fields for da module
authorDavid Carlier <dcarlier@afilias.info>
Fri, 25 Sep 2015 13:13:44 +0000 (14:13 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 28 Sep 2015 12:01:27 +0000 (14:01 +0200)
The name and length of the client cookie, useful for extracting
cookie value's function and a simple bitfield one to define if
set or not.

include/types/global.h
src/haproxy.c

index cb040744d5048b6a4240c789b2540271904008a1..ea5c387d6fdaa4d32ac310897c164bf3a16e3140 100644 (file)
@@ -180,10 +180,13 @@ struct global {
        struct {
                void *atlasimgptr;
                char *jsonpath;
+               char *cookiename;
+               size_t cookienamelen;
                da_atlas_t atlas;
                da_evidence_id_t useragentid;
                da_severity_t loglevel;
                char separator;
+               unsigned char daset:1;
        } deviceatlas;
 #endif
 #ifdef USE_51DEGREES
index 57db1db31e5724be5ea2c138e5712cb22b51b624..12269324864e24901a66f9d1725435bd6363c511 100644 (file)
@@ -181,8 +181,11 @@ struct global global = {
 #ifdef USE_DEVICEATLAS
        .deviceatlas = {
                .loglevel = DA_SEV_INFO,
-               .useragentid = 0,
                .jsonpath = 0,
+               .cookiename = 0,
+               .cookienamelen = 0,
+               .useragentid = 0,
+               .daset = 0,
                .separator = '|',
        },
 #endif