Menu

#32 IP addresses in TRDP_PD_INFO_T differ depending on functions and are not useful

1.2.0.0
closed
None
2014-09-04
2014-03-18
Bernd Löhr
No

The destination IP address in TRDP_PD_INFO_T structure is different for tlp_get() and the PD callback function.
In tlp_get(), the values from subscription are returned:
(trdp_if.c:)
pPdInfo->destIpAddr = pElement->addr.destIpAddr;
(trdp_pdcom.c:)
theMessage.destIpAddr = subAddresses.destIpAddr;
Also:
The returned source IP address is the one from the subscription, not the real one.
This way the user cannot post-filter on source addresses...

Discussion

  • Armin-Hagen Weiss

    • status: open --> accepted
    • assigned_to: Bernd Löhr
     
  • Bernd Löhr

    Bernd Löhr - 2014-09-04
    • status: accepted --> closed
     
  • Bernd Löhr

    Bernd Löhr - 2014-09-04

    destIpAddr and srcIPAddr are saved in PD_ELE_T so that tlp_get and the corresponding callbacks return the same values (the ones from the last received packet).

     

Log in to post a comment.

MongoDB Logo MongoDB