mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-19 19:02:34 +01:00
udp_srcip defaulted to 127.0.0.1 for virtual servers
This commit is contained in:
@@ -37,6 +37,8 @@ const enum detectorType myDetectorType = GOTTHARD2;
|
|||||||
const enum detectorType myDetectorType = GENERIC;
|
const enum detectorType myDetectorType = GENERIC;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define LOCALHOSTIP_INT 2130706433
|
||||||
|
|
||||||
// Global variables from communication_funcs
|
// Global variables from communication_funcs
|
||||||
extern int lockStatus;
|
extern int lockStatus;
|
||||||
extern uint32_t lastClientIP;
|
extern uint32_t lastClientIP;
|
||||||
@@ -119,10 +121,11 @@ int printSocketReadError() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void init_detector() {
|
void init_detector() {
|
||||||
|
memset(udpDetails, 0, sizeof(udpDetails));
|
||||||
#ifdef VIRTUAL
|
#ifdef VIRTUAL
|
||||||
LOG(logINFO, ("This is a VIRTUAL detector\n"));
|
LOG(logINFO, ("This is a VIRTUAL detector\n"));
|
||||||
|
udpDetails[0].srcip = LOCALHOSTIP_INT;
|
||||||
#endif
|
#endif
|
||||||
memset(udpDetails, 0, sizeof(udpDetails));
|
|
||||||
udpDetails[0].srcport = DEFAULT_UDP_SRC_PORTNO;
|
udpDetails[0].srcport = DEFAULT_UDP_SRC_PORTNO;
|
||||||
udpDetails[0].dstport = DEFAULT_UDP_DST_PORTNO;
|
udpDetails[0].dstport = DEFAULT_UDP_DST_PORTNO;
|
||||||
#ifdef EIGERD
|
#ifdef EIGERD
|
||||||
|
|||||||
Reference in New Issue
Block a user