buglwIP - A Lightweight TCP/IP stack - Bugs: bug #43094, The function tcpip_input() forget...

 
 

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

bug #43094: The function tcpip_input() forget to handle IPv6

Submitted by:  任海波 <hichard>
Submitted on:  Thu 28 Aug 2014 02:02:07 AM UTC  
 
Category: IPv6Severity: 3 - Normal
Item Group: Faulty BehaviourStatus: Fixed
Privacy: PublicAssigned to: Ivan Delamer <idelamer>
Open/Closed: ClosedPlanned Release: None
lwIP version: git head

Wed 11 Feb 2015 08:37:21 PM UTC, comment #2:

Done, thanks for the patch.

Simon Goldschmidt <goldsimon>
Project Administrator
Thu 28 Aug 2014 04:26:43 PM UTC, comment #1:

Confirmed, will be changed soon.

Ivan Delamer <idelamer>
Project MemberIn charge of this item.
Thu 28 Aug 2014 02:02:07 AM UTC, original submission:

Hello Ivan:
I found a bug the function tcpip_input(). This function forget to handle IPv6. I has change it as follow. In the thread tcpip_thread(), it is handled as this.
err_t
tcpip_input(struct pbuf p, struct netif inp)
{
#if LWIP_TCPIP_CORE_LOCKING_INPUT
err_t ret;
LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_input: PACKET %p/%p\n", (void )p, (void )inp));
LOCK_TCPIP_CORE();
#if LWIP_ETHERNET
if (inp->flags & (NETIF_FLAG_ETHARP | NETIF_FLAG_ETHERNET)) {
ret = ethernet_input(p, inp);
} else
#endif /* LWIP_ETHERNET */
#if LWIP_IPV6
if ((((unsigned char )(p->payload)) & 0xf0) == 0x60) {
ret = ip6_input(p, inp);
} else
#endif /* LWIP_IPV6 */
{
ret = ip_input(p, inp);
}
UNLOCK_TCPIP_CORE();
return ret;
#else /* LWIP_TCPIP_CORE_LOCKING_INPUT */

任海波 <hichard>

 

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 idelamer (Posted a comment)
  • -unavailable- added by hichard (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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 11 Feb 2015 08:37:21 PM UTCgoldsimonStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Thu 28 Aug 2014 04:26:43 PM UTCidelamerItem GroupChange Request=>Faulty Behaviour
      StatusNone=>Confirmed
      Assigned toNone=>idelamer

    Back to the top


    Powered by Savane 3.1-cleanup1