lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Multicast packet will drop in ip.c


From: Bandu
Subject: [lwip-users] Multicast packet will drop in ip.c
Date: Tue, 1 Jun 2010 12:49:01 +0100

Hi,
 
I would like to check lwip 1.3.2 implementation about multicast/broadcast implementation.

even though, IP_SOF_BROADCAST_RECV & IP_SOF_BROADCAST defined, ip layer will drop all multicast and broadcast packet except DHCP protocol. Is this a bug or intended implementation?

// In ip.c

  if (check_ip_src)
  {  if ((ip_addr_isbroadcast(&(iphdr->src), inp)) ||
         (ip_addr_ismulticast(&(iphdr->src)))) {
      /* packet source is not valid */
      LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_TRACE | 1, ("ip_input: packet source is not valid.\n"));
      /* free (drop) packet pbufs */
      pbuf_free(p);
      IP_STATS_INC(ip.drop);
      snmp_inc_ipinaddrerrors();
      snmp_inc_ipindiscards();
      return ERR_OK;
    }
  }

Regards,

--
Bandu
address@hidden

reply via email to

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