Project

General

Profile

Actions

Bug #34

closed

ClMsgDiscovery use only if valid

Added by Vincenzo Cimino 5 months ago. Updated 5 months ago.

Status:
Closed
Priority:
High
Target version:
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 #1

Updated by Vincenzo Cimino 5 months ago

  • Status changed from New to In Progress
Actions #2

Updated by Vincenzo Cimino 5 months ago

  • Status changed from In Progress to Closed
Actions

Also available in: Atom PDF