MEDIUM: stick-table: implement lookup from a sample fetch
authorWilly Tarreau <w@1wt.eu>
Thu, 3 Jul 2014 15:02:46 +0000 (17:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 10 Jul 2014 14:43:44 +0000 (16:43 +0200)
commit8fed9037cd5a680180fd9221568c95d9dfd03042
tree05089cd70359cc2e8574a7f2e9d837c1610b2b81
parentffcb2e4b42acd710121a57eb39651a373d904e5b
MEDIUM: stick-table: implement lookup from a sample fetch

Currently we have stktable_fetch_key() which fetches a sample according
to an expression and returns a stick table key, but we also need a function
which does only the second half of it from a known sample. So let's cut the
function in two and introduce smp_to_stkey() to perform this lookup. The
first function was adapted to make use of it in order to avoid code
duplication.
include/proto/stick_table.h
src/stick_table.c