Solved! Go to Solution.
Solved!
Recompile your Libs with the RTCSCFG_IP_DISABLE_DIRECTED_BROADCAST defined to 0 at user_config.h
#define RTCSCFG_IP_DISABLE_DIRECTED_BROADCAST 0
@TomR
I'm having the exact same issue , have you been able to solve it ?
Solved!
Recompile your Libs with the RTCSCFG_IP_DISABLE_DIRECTED_BROADCAST defined to 0 at user_config.h
#define RTCSCFG_IP_DISABLE_DIRECTED_BROADCAST 0
I tried to do this and it works if I build my libs in debug configuration. If I build them in release configuration I can't receive broadcast frames... I don't know what I have to do...
I tried building rtcs library with different compiler's optimization levels : with level 1 no problem, with level 2 or superior broadcast udp reception doesn't work.
Additional debugging info:
The datagram sent to 192.168.0.255 is being dropped in the function IP_route_local(). It discards the packet and increments the rx discarded count and the rx addr errors count.
You have gotten farther than me. I can't recieve a broadcast (255,255,255,255) datagram.
I am currently using a stream socket and wanted to add a datagram socket to recieve broadcast datagrams.
What settings allow the reception of UDP broadcasts ?
The code fragment above will do the trick. Nothing more is needed on the receive side.
Typically the problem to send a broadcast datagram is on the sending end. Make sure that you've done a setsockopt(SO_BROADCAST) on the sending socket.
Have you sniffed the wire and observed that the packet is being sent on the wire?