summaryrefslogtreecommitdiffstats
path: root/VNFs/DPPD-PROX/prox_cfg.h
diff options
context:
space:
mode:
authorXavier Simonart <xavier.simonart@intel.com>2019-09-04 13:54:31 +0200
committerXavier Simonart <xavier.simonart@intel.com>2019-09-04 13:54:31 +0200
commitd3552eafaca34771734258f3ff6f4f5f819e72bd (patch)
tree1955ec75c2d21303f9ee6b6a18a32dfb3da82692 /VNFs/DPPD-PROX/prox_cfg.h
parent9033cadea78ca28c726323cb8334c7206fe51c22 (diff)
Add heartbeat support (stop all cores in case of TCP socket issues)
"heartbeat timeout" (in second) can be specified as a global parameter in PROX config file. If set, a timer is started when the first command is received from the TCP socket. This timer is reset at each commands received through the TCP socket. If the timer expires, then - all cores are stopped - the TCP socket is closed, causing an error at client side. This feature helps in case a script starts PROX and the traffic generated through PROX causes issues to the control plane. Change-Id: I900f22fa091786a564f6b7d846f5abc2c5cbcc58 Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
Diffstat (limited to 'VNFs/DPPD-PROX/prox_cfg.h')
-rw-r--r--VNFs/DPPD-PROX/prox_cfg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/VNFs/DPPD-PROX/prox_cfg.h b/VNFs/DPPD-PROX/prox_cfg.h
index ed54ecc5..9d5f25f7 100644
--- a/VNFs/DPPD-PROX/prox_cfg.h
+++ b/VNFs/DPPD-PROX/prox_cfg.h
@@ -66,6 +66,8 @@ struct prox_cfg {
uint32_t logbuf_size;
uint32_t logbuf_pos;
char *logbuf;
+ uint32_t heartbeat_timeout;
+ uint64_t heartbeat_tsc;
};
extern struct prox_cfg prox_cfg;