> No, you're not wrong. Of course the function is not usable from the
> netconn thread. However, my proposal is not much different to yours:
> having a flag UDP_FLAGS_IS_BROADCAST in the PCB won't help you,
> either, since that flag is not added to the netbuf but only stored
> in the PCB: it might get deleted by the time you received the netbuf...
> Therefore, I thought you'd be using the raw API...
Yes, but I do have the pcb in that layer. I have the
netconn, so I just go conn->pcb.udp->flags and look for the new broadcast
flag. In the tests this worked as intended, but might be coincidence.