Altera_Forum
Honored Contributor
19 years agoLWIP broadcast
Hello,
I have set up NIOS w/LWIP as UDP client. Addresses are fixed, not using DHCP. I can send and receive okay to fixed IP addresses, but LWIP will not receive a packet when the server sets the last dot quad to .255 instead of the particular value (.003 in my case). The subnet mask both server (a PC running Labview) and the client (NIOS) are 255.255.255.0. Packet sniffer shows proper packets. I can trace (by breakpoints) the UDP packet with x.x.x.255 address to the function udp_input (in file udp.c), but the function does not recognize the packet as being of interest and doesn't process it completely, so the function recvfrom() never returns. I can't tell exactly what is going on within the function, but I'm pretty sure this is where the hangup is. Has anyone had any luck receiving broadcast UDP packets? Suggestions? Thanks for your help, Tim