lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #33653] ip_data.current_ip_header_tot_len calculation


From: hanhui
Subject: [lwip-devel] [bug #33653] ip_data.current_ip_header_tot_len calculation errors!
Date: Mon, 27 Jun 2011 03:43:00 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.24 Safari/534.7

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

                 Summary: ip_data.current_ip_header_tot_len calculation
errors!
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: hanhui03
            Submitted on: Mon Jun 27 03:42:59 2011
                Category: IPv4
                Severity: 3 - Normal
              Item Group: Crash Error
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: CVS Head

    _______________________________________________________

Details:

in ipv4.c

ip_input()
{
    ...
    ip_data.current_ip_header_tot_len = IPH_LEN(iphdr);
    ...
}

should be:

    ip_data.current_ip_header_tot_len = IPH_HL(iphdr) * 4;

or 

    ip_data.current_ip_header_tot_len = iphdr_hlen;





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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