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...
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).