In tlm_addListener() of TRDP Light, it is observed that the function does not use the default MD Config values if the provided pktFlags value is set asTRDP_FLAGS_DEFAULT.
Whereas, in all other functions (like tlm_request , tlm_notify etc. ) taking pktFlags as a parameter, there is a check if the provided value is TRDP_FLAGS_DEFAULT; and if so, the MD config default values are read fromappHandle->mdDefault.flags.
Is this behavior intentional? Because then, in a use case where the user wants to add a listener with the “marshall” and “protocol” values as per the default values, even passing TRDP_FLAGS_DEFAULT will not work.
Propose a change in code as per attached diff.
Made changes as per the proposed solution.