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