[MEDIUM] Manage peers section parsing and stick table registration on peers.
diff --git a/include/common/cfgparse.h b/include/common/cfgparse.h
index a67f0d1..b43f899 100644
--- a/include/common/cfgparse.h
+++ b/include/common/cfgparse.h
@@ -33,6 +33,7 @@
#define CFG_GLOBAL 1
#define CFG_LISTEN 2
#define CFG_USERLIST 3
+#define CFG_PEERS 4
struct cfg_keyword {
int section; /* section type for this keyword */
diff --git a/include/types/stick_table.h b/include/types/stick_table.h
index cb3fb3b..e519f49 100644
--- a/include/types/stick_table.h
+++ b/include/types/stick_table.h
@@ -147,6 +147,11 @@
struct task *sync_task; /* sync task */
unsigned int update;
unsigned int localupdate;
+ union {
+ struct peers *p; /* sync peers */
+ char *name;
+ } peers;
+
unsigned long type; /* type of table (determines key format) */
size_t key_size; /* size of a key, maximum size in case of string */
unsigned int size; /* maximum number of sticky sessions in table */