Forum Discussion
Altera_Forum
Honored Contributor
20 years agoSending a UDP-message
Hi all, this is my code. I am trying to send messages through UDP. But all it is sending are ARP's. Could anyone tell me what's wrong? I am going crazy overhere.... http://fo...
Altera_Forum
Honored Contributor
20 years agoHello Danny,
Does your target (perhaps the PC) send an answer for the ARP requests? If not lwip can’t send any UDP packets because the stack doesn’t know which MAC address belongs to the IP address (in your code 169.254.0.1). But it must be possible to send broadcast messages. Just change IP4_ADDR(&udpDestIpAddr, 169, 254, 0, 1); to IP4_ADDR(&udpDestIpAddr, 255, 255, 255, 255);. Regards, niosIIuser