mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-01 17:11:17 +01:00
binaries in
This commit is contained in:
@@ -939,31 +939,30 @@ void Module::setSourceUDPMAC2(const sls::MacAddr mac) {
|
||||
sendToDetector(F_SET_SOURCE_UDP_MAC2, mac, nullptr);
|
||||
}
|
||||
|
||||
slsDetectorDefs::udpDestination
|
||||
Module::getDestinationUDPList(const uint32_t entry) const {
|
||||
return sendToDetector<udpDestination>(F_GET_DEST_UDP_LIST, entry);
|
||||
sls::UdpDestination Module::getDestinationUDPList(const uint32_t entry) const {
|
||||
return sendToDetector<sls::UdpDestination>(F_GET_DEST_UDP_LIST, entry);
|
||||
}
|
||||
|
||||
void Module::setDestinationUDPList(const slsDetectorDefs::udpDestination dest) {
|
||||
void Module::setDestinationUDPList(const sls::UdpDestination dest) {
|
||||
// set them in the default way so the receivers are also set up
|
||||
if (dest.entry_ == 0) {
|
||||
if (dest.port_ != 0) {
|
||||
setDestinationUDPPort(dest.port_);
|
||||
if (dest.entry == 0) {
|
||||
if (dest.port != 0) {
|
||||
setDestinationUDPPort(dest.port);
|
||||
}
|
||||
if (dest.ip_ != 0) {
|
||||
setDestinationUDPIP(IpAddr(dest.ip_));
|
||||
if (dest.ip != 0) {
|
||||
setDestinationUDPIP(dest.ip);
|
||||
}
|
||||
if (dest.mac_ != 0) {
|
||||
setDestinationUDPMAC(MacAddr(dest.mac_));
|
||||
if (dest.mac != 0) {
|
||||
setDestinationUDPMAC(dest.mac);
|
||||
}
|
||||
if (dest.port2_ != 0) {
|
||||
setDestinationUDPPort2(dest.port2_);
|
||||
if (dest.port2 != 0) {
|
||||
setDestinationUDPPort2(dest.port2);
|
||||
}
|
||||
if (dest.ip2_ != 0) {
|
||||
setDestinationUDPIP2(IpAddr(dest.ip2_));
|
||||
if (dest.ip2 != 0) {
|
||||
setDestinationUDPIP2(dest.ip2);
|
||||
}
|
||||
if (dest.mac2_ != 0) {
|
||||
setDestinationUDPMAC2(MacAddr(dest.mac2_));
|
||||
if (dest.mac2 != 0) {
|
||||
setDestinationUDPMAC2(dest.mac2);
|
||||
}
|
||||
} else {
|
||||
sendToDetector(F_SET_DEST_UDP_LIST, dest, nullptr);
|
||||
|
||||
Reference in New Issue
Block a user