[MINOR] config: reference file and line with any listener/proxy/server declaration
Those will be used later for cross-references of conflicts or errors.
diff --git a/include/types/protocols.h b/include/types/protocols.h
index c89deb3..62d9f60 100644
--- a/include/types/protocols.h
+++ b/include/types/protocols.h
@@ -104,6 +104,11 @@
} perm;
char *interface; /* interface name or NULL */
int maxseg; /* for TCP, advertised MSS */
+
+ struct {
+ const char *file; /* file where the section appears */
+ int line; /* line where the section appears */
+ } conf; /* config information */
};
/* This structure contains all information needed to easily handle a protocol.
diff --git a/include/types/proxy.h b/include/types/proxy.h
index 1c73d24..88a01cc 100644
--- a/include/types/proxy.h
+++ b/include/types/proxy.h
@@ -258,6 +258,11 @@
int no_options2; /* PR_O2_* */
struct pxcounters counters; /* statistics counters */
+
+ struct {
+ const char *file; /* file where the section appears */
+ int line; /* line where the section appears */
+ } conf; /* config information */
};
struct switching_rule {
diff --git a/include/types/server.h b/include/types/server.h
index ddf5a46..45528fa 100644
--- a/include/types/server.h
+++ b/include/types/server.h
@@ -131,6 +131,11 @@
int puid; /* proxy-unique server ID, used for SNMP */
struct srvcounters counters; /* statistics counters */
+
+ struct {
+ const char *file; /* file where the section appears */
+ int line; /* line where the section appears */
+ } conf; /* config information */
};