lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #45322] ICMP echo reply checksum wrong on NULL Bytes p


From: TabascoEye
Subject: [lwip-devel] [bug #45322] ICMP echo reply checksum wrong on NULL Bytes payload
Date: Mon, 15 Jun 2015 09:23:13 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0

URL:
  <http://savannah.nongnu.org/bugs/?45322>

                 Summary: ICMP echo reply checksum wrong on NULL Bytes payload
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: tabascoeye
            Submitted on: Mo 15 Jun 2015 09:23:12 GMT
                Category: IPv4
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: 1.4.1

    _______________________________________________________

Details:

When a client sends an ICMP echo request with ID 0, Sequence 0 and either no
data or any amount of 0x00 Bytes as data, the checksum in the reply by LWIP is
wrong (off-by-one).

Expected checksum is 0xffff in that case, observed is 0x0000.
So the client does not see that reply as valid and determines the LWIP device
as unreachable.

Attached patch fixes the off-by-one error when checksum should be 0xffff



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mo 15 Jun 2015 09:23:12 GMT  Name: ping_reply_to_0_bytes_payload.diff 
Size: 553B   By: tabascoeye

<http://savannah.nongnu.org/bugs/download.php?file_id=34223>

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.nongnu.org/




reply via email to

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