lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #27140] tcp/ip stack hang becouse remains a pbuf_free


From: juan schiavoni
Subject: [lwip-devel] [bug #27140] tcp/ip stack hang becouse remains a pbuf_free
Date: Tue, 04 Aug 2009 00:10:14 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009070812 Ubuntu/8.04 (hardy) Firefox/3.0.12

Follow-up Comment #10, bug #27140 (project lwip):

Hi, tomorrow I will do the change for tcpip_input.


   /* if( ERR_OK != ethernet_input( p, netif ) )
    {
      pbuf_free(p);
      p = NULL;
    }
    */

    /* points to packet payload, which starts with an Ethernet header */
    ethhdr = p->payload;

    switch( htons( ethhdr->type ) )
    {
      /* IP or ARP packet? */
        case ETHTYPE_IP:
        case ETHTYPE_ARP:
#if PPPOE_SUPPORT
     /* PPPoE packet? */
        case ETHTYPE_PPPOEDISC:
        case ETHTYPE_PPPOE:
#endif /* PPPOE_SUPPORT */
    /* full packet send to tcpip_thread to process */
        if( netif->input( p, netif ) != ERR_OK )
        {
          LWIP_DEBUGF(NETIF_DEBUG, ("ethernetif_input: IP input errorn"));
          pbuf_free(p);
          p = NULL;
        }
        break;

        default:
          pbuf_free(p);
         p = NULL;
        break;
    }

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?27140>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]