lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] lwip 1.3.0 problems with UDP and TCP connection simulta


From: address@hidden
Subject: Re: [lwip-users] lwip 1.3.0 problems with UDP and TCP connection simultaneously?
Date: Mon, 25 Oct 2010 19:00:07 +0200
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.2.11) Gecko/20101013 Thunderbird/3.1.5

UDP and TCP are two totally separate protocols built on top of IP, so there's (from the protocol point of view) no way they can influence each other. What you're seeing looks like a misconfiguration or a bug in your port or application. Normally, what you described should work with lwIP.

Felix Baur wrote:

[..]

 

Following code sequence I use in my “UDP Thread” which will be woken every 10ms:

/*******************************************************/

// allocate packet buffer

p = pbuf_alloc(PBUF_TRANSPORT, (1024 + 5) * sizeof(int), PBUF_RAM);

This does look a little strange: why do you allocate 10 Kilobytes as a buffer? The udp raw API should only be able to send 1472 bytes per UDP datagram/udp_send call (for an MTU of 1500). If you did not explicitly take care of Jumbo Frames in your port, I would have expected such a large datagram to be never transmitted.

Simon

reply via email to

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