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

Submitter:  任海波 <hichard>
Submitted:  Thu 28 Aug 2014 02:02:07 AM UTC
   
 
Category:  IPv6 Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Fixed
Privacy:  Public Assigned to:  idelamer
Open/Closed:  Closed Planned 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>
Group administrator
Thu 28 Aug 2014 04:26:43 PM UTC, comment #1: 

Confirmed, will be changed soon.

Ivan Delamer <idelamer>
Group Member
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>

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2015-02-11 goldsimon StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2014-08-28 idelamer Item GroupChange Request Faulty Behaviour
        StatusNone Confirmed
        Assigned toNone idelamer

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code