lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #27576] pbuf_realloc will assert or crash on a non-cha


From: Bill Auerbach
Subject: [lwip-devel] [bug #27576] pbuf_realloc will assert or crash on a non-chained pbuf list
Date: Tue, 06 Oct 2009 13:24:56 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)

Follow-up Comment #11, bug #27576 (project lwip):

Since you're talking about including this in ethernetif.c, I would think a
little more documentation in low_level_input on what is expected of the
returned pbuf is sufficient.  I didn't need a runtime check as much as I
simply needed to know what the requirements are doing my Ethernet driver.

In low_level_input:

"If you have read the Ethernet packet into a preallocated pbuf in an
interrupt service routine, ensure the tot_len member of the pbuf is the sum of
the chained pbuf len members."

    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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