Menu

#205 tlm_addListener() does not acknowledge TRDP_FLAGS_DEFAULT flag

1.4.0.0
closed
None
2018-06-26
2018-06-20
No

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.

1 Attachments

Discussion

  • Siddhi Wadgaonkar

    • status: open --> closed
     
  • Siddhi Wadgaonkar

    Made changes as per the proposed solution.

     

Log in to post a comment.

MongoDB Logo MongoDB