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

 
 

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

bug #49578: lwip_socket_drop_registered_memberships API may not work with LWIP_SOCKET_OFFSET

Submitted by:  Arpit Agarwal <arpit_iitg>
Submitted on:  Fri 11 Nov 2016 10:06:40 AM UTC  
 
Category: sockets/netconnSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedPlanned Release: None
lwIP version: git head

Fri 11 Nov 2016 10:14:02 AM UTC, comment #1:

Thanks for reporting!

Dirk Ziegelmeier <dziegel>
Project Member
Fri 11 Nov 2016 10:06:40 AM UTC, original submission:

The API directly tries to use sockets array to leave multicast group.

Reference Code Line:

netconn_join_leave_group(sockets[s].conn, &multi_addr, &if_addr, NETCONN_LEAVE);

So in case LWIP_SOCKET_OFFSET is in use, this will not work.

It can be easily fixed using below code:

netconn_join_leave_group(sock.conn, &multi_addr, &if_addr, NETCONN_LEAVE);

as we already have socket corresponding to socket descriptor passed in argument.

Arpit Agarwal <arpit_iitg>

 

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 dziegel (Posted a comment)
  • -unavailable- added by arpit_iitg (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 11 Nov 2016 10:14:02 AM UTCdziegelStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1