lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #45159] Is this part of do_writemore() in api_msg.c co


From: Roberto Barbieri Carrera
Subject: [lwip-devel] [bug #45159] Is this part of do_writemore() in api_msg.c correct?
Date: Thu, 21 May 2015 13:57:35 +0000
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36

Follow-up Comment #2, bug #45159 (project lwip):

Yes, but len could be three things:

diff = conn->current_msg->msg.w.len - conn->write_offset;

or

len = 0xffff;

or

len = available;   //The space available in snd_buf

So if conn->write_offset is not zero at the beginning, the expression

(len < conn->current_msg->msg.w.len) 

doesn't have the meaning one expects.

The expression

(conn->write_offset + len)

looks correct to me.

But may be I'm wrong, I just wanted to report this junst in case.

Kind regards, and thanks for your fast answer,
Roberto Barbieri Carrera
Archwave AG






    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?45159>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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