[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [task #6861] Pimp ip_frag.c
From: |
Jonathan Larmour |
Subject: |
[lwip-devel] [task #6861] Pimp ip_frag.c |
Date: |
Wed, 09 May 2007 11:50:22 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070223 Fedora/1.5.0.10-1.fc5 Firefox/1.5.0.10 |
Follow-up Comment #5, task #6861 (project lwip):
Good, I got permission. I'm attaching the fragmentation patch against 1.1. It
does not presently apply cleanly against CVS and I haven't updated it, but
you're going to be changing even more stuff in this area anyway.
If pbuf_alloc fails, the packet is simply dropped, with ERR_MEM.
The following was what I added to opt.h:
-=-=-=-=-=-=-=-=-=-=-=-=-
/* Use a static MTU-sized buffer for IP fragmentation.
* Otherwise pbufs are allocated and reference the original
* packet data to be fragmented.
*/
#ifndef IP_FRAG_USES_STATIC_BUF
#define IP_FRAG_USES_STATIC_BUF 0
#endif
/* Assumed max MTU on any interface for IP frag buffer */
#if IP_FRAG_USES_STATIC_BUF && !defined(IP_FRAG_MAX_MTU)
#define IP_FRAG_MAX_MTU 1500
#endif
-=-=-=-=-=-=-=-=-=-=-=-=-
(file #12728)
_______________________________________________________
Additional Item Attachment:
File name: lwip-ipfrag-pbuf.patch Size:5 KB
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/task/?6861>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/