Actions
Bug #34
closed
ClMsgDiscovery use only if valid
Start date:
11/19/2025
Due date:
% Done:
0%
Estimated time:
Description
Before using ClMsgDiscovery a check it is valid should be done, like this:
ClMsgDiscovery m;
m.addSenderData((const PlugIn*) this, getLayer(), getId(),getStackId(), name() , getTag());
sendSyncClMsgDown(&m);
DiscoveryStorage low_layer_storage = m.findTag(tag.c_str());
if (low_layer_storage.getSize() == 1) { // check it's valid
DiscoveryData low_layer = (*low_layer_storage.begin()).second;
return low_layer.getId();
}
This check should be done properly uwmulti-traffic-control.cc and uwflooding-sec.cpp files.
Actions