From 6a8eafaa6724073cc0aaa59b0950150584edc849 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Mon, 30 Aug 2021 14:51:56 +0200 Subject: [PATCH] fix for jungfrau virtual rr --- .../jungfrauDetectorServer/slsDetectorFunctionList.c | 3 +-- .../slsDetectorServer/src/communication_funcs_UDP.c | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/slsDetectorServers/jungfrauDetectorServer/slsDetectorFunctionList.c b/slsDetectorServers/jungfrauDetectorServer/slsDetectorFunctionList.c index be42c3749..10745239e 100644 --- a/slsDetectorServers/jungfrauDetectorServer/slsDetectorFunctionList.c +++ b/slsDetectorServers/jungfrauDetectorServer/slsDetectorFunctionList.c @@ -1465,6 +1465,7 @@ int configureMAC() { LOG(logINFO, ("\tInterface : %d %s\n\n", selInterface, (selInterface ? "Inner" : "Outer"))); + LOG(logINFO, ("Number of entries: %d\n", numUdpDestinations)); for (int iRxEntry = 0; iRxEntry != MAX_UDP_DESTINATION; ++iRxEntry) { uint32_t srcip = udpDetails[iRxEntry].srcip; uint32_t srcip2 = udpDetails[iRxEntry].srcip2; @@ -1531,9 +1532,7 @@ int configureMAC() { iRxEntry)); return FAIL; } - return OK; #endif - if (numInterfaces == 2) { // bottom setupHeader(iRxEntry, OUTER, dstip, dstmac, dstport, srcmac, srcip, diff --git a/slsDetectorServers/slsDetectorServer/src/communication_funcs_UDP.c b/slsDetectorServers/slsDetectorServer/src/communication_funcs_UDP.c index bd8b45101..95a0fc641 100644 --- a/slsDetectorServers/slsDetectorServer/src/communication_funcs_UDP.c +++ b/slsDetectorServers/slsDetectorServer/src/communication_funcs_UDP.c @@ -33,6 +33,9 @@ int getUdPSocketDescriptor(int iRxEntry, int index) { return udpSockfd[iRxEntry] int setUDPDestinationDetails(int iRxEntry, int index, const char *ip, unsigned short int port) { + LOG(logDEBUG1, + ("Setting udp destination details for socket %d [iRxEntry:%d]\n", index, + iRxEntry)); udpDestinationPort[iRxEntry][index] = port; size_t len = strlen(ip); memset(udpDestinationIp[iRxEntry][index], 0, INET_ADDRSTRLEN);