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.

TMS320DM6435: TI NDK : How to judge whether a destination IP address is broadcast or unicast from UDP packet?

Part Number: TMS320DM6435
Other Parts Discussed in Thread: NDKTCPIP

Hi Team,

                                                                                                                                      

The customer uses DM6435 as the CPU and NDK for the TCP/IP stack.

They developed their application with the Ethernet/IP communication.

According to them, It has been necessary to determine whether a destination IP address is broadcast or unicast in UDP broadcast reception from ODVA Conformance Test CT18 latest version.

 

Example: Your IP address is 192.168.0.10

Source (test tool) IP address as 192.168.0.50.

① Send (a) and (B) in UDP broadcasts from 192.168.0.50.

(A) Source IP: 192.168.50 → Destination IP: 192.168.0.255

(B) Source IP: 192.168.50 → Destination IP: 192.168.0.10

② 192.168.0.10 has to judge the difference of a destination IP (receive IP) between 192.168.0.255 and 192.168.0.10.

 

Is it possible to get a destination IP address when a UDP broadcast packet was received in the NDK?

Currently, when a packet received with recvfrom() is read, the source IP address, Receive data can be retrieved, but not the receive IP address.

 

Do you have any idea or solution for this requirement?

 

Thanks and Best regards,

Kuerbis