removing the assumption that udpip1 fill be updated along with udpip2

This commit is contained in:
2022-02-03 12:53:07 +01:00
parent 47c6954044
commit 97417737b6
5 changed files with 35 additions and 17 deletions

View File

@ -341,10 +341,13 @@ void Implementation::setArping(const bool i,
if (!i) {
arping->StopThread();
} else {
arping->ClearIpsAndInterfaces();
arping->AddInterfacesAndIps(eth[0], ips[0]);
if (numUDPInterfaces == 2 && detType != EIGER) {
arping->AddInterfacesAndIps(eth[1], ips[1]);
// setup interface
for (int i = 0; i != numUDPInterfaces; ++i) {
// ignore eiger with 2 interfaces (only udp port)
if (i == 1 && (numUDPInterfaces == 1 || detType == EIGER)) {
break;
}
arping->SetInterfacesAndIps(i, eth[i], ips[i]);
}
arping->StartThread();
}