buglwIP - A Lightweight TCP/IP stack - Bugs: bug #38165, socket with mulicast

 
 

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

bug #38165: socket with mulicast

Submitted by:  hanhui <hanhui03>
Submitted on:  Fri 25 Jan 2013 03:34:30 AM UTC  
 
Category: sockets/netconnSeverity: 3 - Normal
Item Group: Feature RequestStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned Release: None
lwIP version: CVS Head

Wed 25 Feb 2015 08:31:12 PM UTC, comment #3:

2) Fixed by tracking IP_ADD/DROP_MEMBERSHIP calls and dropping from lwip_close().

1) is OK for me.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Wed 26 Feb 2014 08:44:22 PM UTC, comment #2:

> when close a socket which has already join a group, lwip MUST
> first leave this group then delete socket.


This is not a simple thing to do, as it would require to keep an array of joined groups addresses/netif per socket (a pointer to the calling socket per group does not work as multiple sockets can join the group).

As such, personally, I'd be happy with dropping this in favour for being lightweight: I wouldn't expect lwIP to be used this way...

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Wed 26 Feb 2014 08:38:35 PM UTC, comment #1:

> setsockopt() to join or leave a group, must use:
> netconn_join_leave_group();
> and do NOT use igmp_joingroup() or igmp_leavegroup()!


Why? Isn't the IPv4 code the same? And as far as I read it, IP_ADD_MEMBERSHIP/IP_DROP_MEMBERSHIP are meant for IPv4 only, not for IPv6 as netconn_join_leave_group() handles it.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Fri 25 Jan 2013 03:34:30 AM UTC, original submission:

1:

setsockopt() to join or leave a group, must use:

netconn_join_leave_group();

and do NOT use igmp_joingroup() or igmp_leavegroup()!

2:

when close a socket which has already join a group, lwip MUST

first leave this group then delete socket.

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
    Wed 25 Feb 2015 08:31:12 PM UTCgoldsimonStatusNeed Info=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed
    Wed 26 Feb 2014 08:38:35 PM UTCgoldsimonStatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1