From faa9ecf97ce395115a429c55c997cb4455d57e51 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Tue, 15 Feb 2022 10:16:22 +0100 Subject: [PATCH] allowing virtual servers to also have mac 0 --- .../slsDetectorServer/src/slsDetectorServer_funcs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c b/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c index 9450d01f5..360d2435a 100644 --- a/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c +++ b/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c @@ -4855,12 +4855,14 @@ int is_udp_configured() { LOG(logWARNING, ("%s", configureMessage)); return FAIL; } +#ifndef VIRTUAL if (udpDetails[i].dstmac == 0) { sprintf(configureMessage, "udp destination mac not configured [entry:%d]\n", i); LOG(logWARNING, ("%s", configureMessage)); return FAIL; } +#endif #if defined(JUNGFRAUD) || defined(GOTTHARD2D) if (getNumberofUDPInterfaces() == 2) { if (udpDetails[i].srcip2 == 0) { @@ -4881,12 +4883,14 @@ int is_udp_configured() { LOG(logWARNING, ("%s", configureMessage)); return FAIL; } +#ifndef VIRTUAL if (udpDetails[i].dstmac2 == 0) { sprintf(configureMessage, "udp destination mac2 not configured [entry:%d]\n", i); LOG(logWARNING, ("%s", configureMessage)); return FAIL; } +#endif } #endif }