lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #9645] Fragmentation of packets where MF=1


From: Joe Takagi
Subject: [lwip-devel] [patch #9645] Fragmentation of packets where MF=1
Date: Fri, 1 Jun 2018 05:35:13 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36

URL:
  <http://savannah.nongnu.org/patch/?9645>

                 Summary: Fragmentation of packets where MF=1
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: joetakagi
            Submitted on: Fri 01 Jun 2018 09:35:12 AM UTC
                Category: IPv4
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

If an LwIP instance has multiple interfaces and is performing IP routing
between them it may receive, and need to fragment, packets which have already
been fragmented by an upstream device. 

Currently LwIP asserts when attempting fragmentation of such packets which is
a reliability and potential DoS issue in my application.

This patch aims to improve fragmentation behaviour by:
 1. correctly populating the MF flag of fragments generated from packets where
MF was set: 
    a. all packets generated from fragmentation of a packet with MF set should
have MF set
    b. all except the last packet generated from fragmentation of a packet
with MF cleared should have MF set.
 2. removing the LWIP_ASSERT on fragmentation of packets where MF is set.

Joe T





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 01 Jun 2018 09:35:12 AM UTC  Name: frag-patch.txt  Size: 595B   By:
joetakagi
patch to ip4_frag.c 
<http://savannah.nongnu.org/patch/download.php?file_id=44267>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?9645>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

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