[Top][All Lists]

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

[lwip-devel] [task #6861] Pimp ip_frag.c

From: Simon Goldschmidt
Subject: [lwip-devel] [task #6861] Pimp ip_frag.c
Date: Wed, 09 May 2007 09:55:11 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv: Gecko/20070309 Firefox/

Follow-up Comment #4, task #6861 (project lwip):

My suggestion would be to hold PBUF_POOLs temporarily to reassemble them
later. Let's say I'd allow a maximum of 10 packets consisting of PBUF_POOLs
(of tot_len = maximum MTU). I would then allocate those pbuf chains in
ip_frag_init() and free one each time I put a new packet in the
reassembly-list. That way I guarantee the amount of pbufs in the pool stays
the same while still avoiding 2*memcpy() for each reassembled packet (which,
in my opinion, fits even better to the name "lwIP" :)


Reply to this item at:


  Nachricht geschickt von/durch Savannah

reply via email to

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