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!

Submitted by:  hanhui <hanhui03>
Submitted on:  Mon 27 Jun 2011 03:42:59 AM UTC  
 
Category: IPv4Severity: 3 - Normal
Item Group: Crash ErrorStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned Release: None
lwIP version: CVS Head

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

Fixed, thanks for reporting!

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 29 Jun 2011 07:49:01 PM UTCgoldsimonStatusNone=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1