buglwIP - A Lightweight TCP/IP stack - Bugs: bug #41680, raw socket can not receive IPv6...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #41680: raw socket can not receive IPv6 packet when IP_SOF_BROADCAST_RECV==1

Submitted by:  hanhui <hanhui03>
Submitted on:  Mon 24 Feb 2014 12:23:46 PM UTC  
 
Category: IPv6Severity: 3 - Normal
Item Group: Faulty BehaviourStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned Release: None
lwIP version: git head

Thu 27 Feb 2014 09:19:40 PM UTC, comment #2:

Fixed, thanks for reporting.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Thu 27 Feb 2014 09:16:55 PM UTC, comment #1:

Updated summary

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Mon 24 Feb 2014 12:23:46 PM UTC, original submission:

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

hanhui <hanhui03>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by goldsimon (Posted a comment)
  • -unavailable- added by hanhui03 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 27 Feb 2014 09:19:40 PM UTCgoldsimonStatusNone=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed
    Thu 27 Feb 2014 09:16:55 PM UTCgoldsimonSummaryraw socket can not receive IPv6 packet=>raw socket can not receive IPv6 packet when IP_SOF_BROADCAST_RECV==1

    Back to the top


    Powered by Savane 3.1-cleanup1