wrote on 04.08.2009 16:31:35:
> The only clean solution is to change the function recv_udp() in
> api_msg.c to get the setting (broadcast flag or target address) and
> store it with the netbuf so that you can access it when reading from
> application thread.
> However, this is clearly not wanted by most lwIP users as it would
> additional memory and processing time even if not used.
Maybe we can surround the added fields (I'd add dest
addr and dest port) by #ifdefs? Something like
/** * UDP_EXTENDED_INFO==0: append dest_addr and
dest_port to every received netbuf */ #ifndef UDP_EXTENDED_INFO #define UDP_EXTENDED_INFO