lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #41680] raw socket can not receive IPv6 packet


From: hanhui
Subject: [lwip-devel] [bug #41680] raw socket can not receive IPv6 packet
Date: Mon, 24 Feb 2014 12:23:47 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36

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

                 Summary: raw socket can not receive IPv6 packet
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: hanhui03
            Submitted on: Mon Feb 24 12:23:46 2014
                Category: IPv6
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: git head

    _______________________________________________________

Details:

raw_input() have a bug that drop IPv6 packet:

#if IP_SOF_BROADCAST_RECV
      /* broadcast filter? */
      if (ip_get_option(pcb, SOF_BROADCAST) ||
!ip_addr_isbroadcast(ip_current_dest_addr(), inp))
#if LWIP_IPV6
          && !PCB_ISIPV6(pcb)
#endif /* LWIP_IPV6 */
          )
#endif /* IP_SOF_BROADCAST_RECV */


should be:

#if IP_SOF_BROADCAST_RECV
      /* broadcast filter? */
      if (<ipv6 packet> ||
          ((ip_get_option(pcb, SOF_BROADCAST) ||
!ip_addr_isbroadcast(ip_current_dest_addr(), inp))
#if LWIP_IPV6
          && !PCB_ISIPV6(pcb)
#endif /* LWIP_IPV6 */
          ))
#endif /* IP_SOF_BROADCAST_RECV */

Han.hui




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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