This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/TM4C129ENCZAD: NDK: Receive UDP Packets - how to get destination address

Part Number: TM4C129ENCZAD

Tool/software: TI-RTOS

Hi;

I'm using NDK BSD Socket API to receive UDP packets via recv() or recvfrom(). The packets I'm receiving can be sent by another machine either via unicast directly to the TIVA's IP address (192.168.100.100 for example), or they can be sent via broadcast to 255.255.255.255 or 192.168.100.255. My user process on the TM4C will receive all of them equally, but does not know whether the packet is being sent via broadcast or via unicast. How can I get the received packet's destination address?

Best Regards.

Frank-Christian Krügel