I am using Azure RTOS (formerly Express Logic) NetX v. 5 on a Reneasas S7G2 platform with Synergy SSP.
In our application, we receive UDP packets - both directed at our IP address and directed at the IP Broadcast address - and I need to differentiate between the two.
The function nx_udp_packet_info_extract() has the ip_address parameter, but this is the source address - not the destination address.
How can I get the destination address from the IP header of a UDP packet? Or - more specifically - is there an API call that will allow me to determine if a received UDP packet was sent to the broadcast address or my device's specific IP address?
Thanks for your help.
Regards,
Ben