lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #20346] IPv4 broadcasts ?


From: S. Ali Tokmen
Subject: [lwip-devel] [bug #20346] IPv4 broadcasts ?
Date: Wed, 04 Jul 2007 15:53:26 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

URL:
  <http://savannah.nongnu.org/bugs/?20346>

                 Summary: IPv4 broadcasts ?
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: alitokmen
            Submitted on: mercredi 04.07.2007 à 15:53
                Category: IPv4
                Severity: 3 - Normal
              Item Group: Feature Request
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

In the current implementation, IPv4 ignores broadcast packets. This results
in the non-usability of services depending on broadcast (for example, NetBIOS
name lookup).

This is where broadcast packets are stopped:

    (./src/core/ipv4/ip.c, lines 285-286)

    
    pbuf_free(p);
    return ERR_OK;

I've "fixed" it the following way but I guess it will let go too many
packets:

    (./src/core/ipv4/ip.c, lines 285-286)


    // For broadcast support
    if( IPH_PROTO(iphdr) != IP_PROTO_UDP &&
        IPH_PROTO(iphdr) != IP_PROTO_UDPLITE )
    {
        pbuf_free(p);
        return ERR_OK;
    }

Thank you

S. Ali Tokmen
http://ali.tokmen.com/




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

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