buglwIP - A Lightweight TCP/IP stack - Bugs: bug #20253, "p->payload == iphdr"...

 
 

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

bug #20253: "p->payload == iphdr" assertion in udp.c

Submitted by:  Petr Cernin <cerninp>
Submitted on:  Mon 25 Jun 2007 03:42:45 PM UTC  
 
Category: UDPSeverity: 3 - Normal
Item Group: Crash ErrorStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned Release: None
lwIP version: None

Mon 25 Jun 2007 05:30:35 PM UTC, comment #2:

Yep, thanks for reporting this. I've fixed it.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Mon 25 Jun 2007 04:04:19 PM UTC, comment #1:

This looks like a bug, and a sensible fix.

Kieran Mansley <kieranm>
Project Administrator
Mon 25 Jun 2007 03:42:45 PM UTC, original submission:

This assertion appears every time when udp message is received and destination port is unreachable. There is a little bug in udp.c:

line 259 (udp.c):
pbuf_header(p, (IPH_HL(iphdr) * 4));
LWIP_ASSERT("p->payload == iphdr", (p->payload == iphdr));

there should be:
pbuf_header(p, (IPH_HL(iphdr) * 4) + UDP_HLEN);
LWIP_ASSERT("p->payload == iphdr", (p->payload == iphdr));

Petr Cernin <cerninp>

 

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 kieranm (Posted a comment)
  • -unavailable- added by cerninp (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
    Mon 25 Jun 2007 05:30:35 PM UTCgoldsimonStatusNone=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1