• David L Stevens's avatar
    [IPV4]: multicast API "join" issues · 8cdaaa15
    David L Stevens authored
    1) Changes IP_ADD_SOURCE_MEMBERSHIP and MCAST_JOIN_SOURCE_GROUP to ignore
       EADDRINUSE errors on a "courtesy join" -- prior membership or not
       is ok for these.
    
    2) Adds "leave group" equivalence of (INCLUDE, empty) filters in the 
       delta-based API. Without this, mixing delta-based API calls that
       end in an (INCLUDE, empty) filter would not allow a subsequent
       regular IP_ADD_MEMBERSHIP. It also frees socket buffer memory that
       isn't needed for both the multicast group record and source filter.
    Signed-off-by: default avatarDavid L Stevens <dlstevens@us.ibm.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    8cdaaa15
ip_sockglue.c 24.8 KB