]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: config: Extract the code of "stick-table" line parsing.
authorFrédéric Lécaille <flecaille@haproxy.com>
Fri, 8 Mar 2019 13:47:00 +0000 (14:47 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 7 May 2019 04:54:06 +0000 (06:54 +0200)
commitd456aa4ac2b792c3ae0c787aea4edbbd0ed0fc0e
treead511e16cb4f2533ce081232226e217fa3a966b9
parent034c88cf03a5102cc05d796e3d6f22a802f1cf76
MINOR: config: Extract the code of "stick-table" line parsing.

With this patch we move the code responsible of parsing "stick-table"
lines to implement parse_stick_table() function in src/stick-tabble.c
so that to be able to parse "stick-table" elsewhere than in proxy sections.
We have have also added a conf struct to stktable struct to store the filename
and the line in the file the stick-table has been parsed to help in
diagnosing and displaying any configuration issue.
include/proto/stick_table.h
include/types/stick_table.h
src/cfgparse-listen.c
src/stick_table.c