buglwIP - A Lightweight TCP/IP stack - Bugs: bug #52914, ip4_canforward() mcast packet...

 
 

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

bug #52914: ip4_canforward() mcast packet error.

Submitter:  hanhui <hanhui03>
Submitted:  Tue 16 Jan 2018 02:32:08 PM UTC
   
 
Category:  IPv4 Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  2.1.0
lwIP version:  git head

Tue 12 Jun 2018 04:46:05 AM UTC, comment #3: 

Fixed and added LWIP_HOOK_IP4_CANFORWARD.

Simon Goldschmidt <goldsimon>
Group administrator
Mon 11 Jun 2018 11:36:08 AM UTC, comment #2: 

Let's add yet another hook for this, since we already have routing hooks.

Simon Goldschmidt <goldsimon>
Group administrator
Tue 16 Jan 2018 07:50:31 PM UTC, comment #1: 

You're right for standard routing. Currently it seems we would forward all multicast packets to the default netif (unless they were received there).

However, currently, devices have the possibility to implement correct multicast routing using the routing hook. Your change would remove that.

Simon Goldschmidt <goldsimon>
Group administrator
Tue 16 Jan 2018 02:32:08 PM UTC, original submission:  

ip4_canforward()
{
   ...
   if ((p->flags & PBUF_FLAG_LLMCAST) && !IP_MULTICAST(addr)) {
   should be:
   if ((p->flags & PBUF_FLAG_LLMCAST) || IP_MULTICAST(addr)) {
   ...
}

The unicast forwarding function does not allow forwarding multicast packets. the multicast forwarding is done by the pim router.

hanhui <hanhui03>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-06-12 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed
    2018-05-25 goldsimon Planned ReleaseNone 2.1.0

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code