buglwIP - A Lightweight TCP/IP stack - Bugs: bug #33653, ip_data.current_ip_header_tot_len...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #33653: ip_data.current_ip_header_tot_len calculation errors!

Submitter:  hanhui <hanhui03>
Submitted:  Mon 27 Jun 2011 03:42:59 AM UTC
   
 
Category:  IPv4 Severity:  3 - Normal
Item Group:  Crash Error Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  CVS Head

Wed 29 Jun 2011 07:49:01 PM UTC, comment #1: 

Fixed, thanks for reporting!

Simon Goldschmidt <goldsimon>
Group administrator
Mon 27 Jun 2011 03:42:59 AM UTC, original submission:  

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;

hanhui <hanhui03>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by hanhui03 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-06-29 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code