inet icon indicating copy to clipboard operation
inet copied to clipboard

IpvxTrafGen doesn't evaulate destAddr until message is sent

Open edlongman opened this issue 3 years ago • 1 comments

In IpvxTrafGen, the destination addresses string is not evaluated until the first message is sent. https://github.com/inet-framework/inet/blob/be4e4cd2953f564cdfca8cbbaaeb476b8df795aa/src/inet/applications/generic/IpvxTrafGen.cc#L96-L106

Is there a good reason for this. I think it would make more sense to be evaluated in the initialize() "INITSTAGE_APPLICATION_LAYER" part.

Not evaluating it until the first message is sent makes the class less useful when inherited from, since this property cannot be used if it is not evaluated.

edlongman avatar Mar 08 '21 15:03 edlongman

The token maybe stay unresolved in initialize, but resolved in handleMessage: for example, dinamically generated network node, IPv6 addresses, etc.

ZoltanBojthe avatar May 05 '22 14:05 ZoltanBojthe

I think we can close this issue because the current behavior is better than the one suggested.

levy avatar Feb 22 '23 08:02 levy