buglwIP - A Lightweight TCP/IP stack - Bugs: bug #44649, ...

 
 

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

bug #44649: lwip_socket_drop_registered_memberships

Submitter:  Mateusz Klatecki <klatecki>
Submitted:  Fri 27 Mar 2015 11:35:30 AM UTC
   
 
Category:  sockets/netconn Severity:  3 - Normal
Item Group:  Crash Error Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  git head

Fri 27 Mar 2015 12:19:12 PM UTC, comment #1: 

Right. Fixed. Thanks for reporting.

Simon Goldschmidt <goldsimon>
Group administrator
Fri 27 Mar 2015 11:35:30 AM UTC, original submission:  

I think in lwip_socket_drop_registered_memberships is error

netconn_join_leave_group has parameters:
 struct netconn *conn,
 const ip_addr_t *multiaddr,
 const ip_addr_t *netif_addr,
 enum netconn_igmp join_or_leave


but is run in that way:
netconn_join_leave_group(sockets[s].conn, &socket_ipv4_multicast_memberships[i].if_addr,
        &socket_ipv4_multicast_memberships[i].multi_addr, NETCONN_LEAVE);

so multiaddr and netif_addr are swaped.


I think this is correct:
      netconn_join_leave_group(sockets[s].conn, &socket_ipv4_multicast_memberships[i].multi_addr,
      &socket_ipv4_multicast_memberships[i].if_addr, NETCONN_LEAVE);

Mateusz Klatecki <klatecki>

 

(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 klatecki (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-03-27 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code