AcquisitionDevice: IPv4 address and UDP destination port is property of the device and not of a particular run

This commit is contained in:
2023-04-15 12:08:01 +02:00
parent 3319306b50
commit 32baaef1e4
24 changed files with 222 additions and 168 deletions
+9 -2
View File
@@ -118,8 +118,15 @@ JFJochProtoBuf::ReceiverNetworkConfig JFJochReceiverClient::GetNetworkConfig() {
"JFJochReceiver: " + status.error_message());
} else {
// For tests to work, dummy receiver needs to replay with nonsense MAC addresses
ret.add_fpga_mac_addr("00:00:00:00:00:00");
ret.add_fpga_mac_addr("00:00:00:00:00:01");
auto d1 = ret.add_device();
d1->set_mac_addr("00:00:00:00:00:00");
d1->set_ipv4_addr("10.10.50.1");
d1->set_udp_port(1234);
auto d2 = ret.add_device();
d2->set_mac_addr("00:00:00:00:00:01");
d2->set_ipv4_addr("10.10.50.2");
d2->set_udp_port(1234);
}
return ret;
}