lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] SOLVED! Re: invalid recvmbox in UDP recv() function


From: address@hidden
Subject: Re: [lwip-users] SOLVED! Re: invalid recvmbox in UDP recv() function
Date: Fri, 12 May 2017 20:09:11 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

gussabina wrote:
The problem was there was not default value for DEFAULT_UDP_RECVMBOX_SIZE in
the options, so I had to add an extra line.
Just in case someone else goes though the same problem, they need to add
last line in lwipopts.h file;

Ehrm, no, that line does *not* have to be added. Instead, as I assumed, your port is broken: 0 is of course not a valid size but a hint that this is the default config option and that the size is port-dependent. Your port should either handle this (and replace 0 by default size) or assert (or throw or whatever is needed to tell the developer that this doesn't work).

Nice to see this was the only problem though :-)

Simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]