[New-bugs-announce] [issue45252] Missing support for Source Specific Multicast

CireSnave report at bugs.python.org
Mon Sep 20 20:26:04 EDT 2021


New submission from CireSnave <ciresnave at yahoo.com>:

It appears that Python's socket module is missing support for the IGMPv3 socket options needed to support Source Specific Multicast.  Many developers appear to be adding the necessary constants through something like:

if not hasattr(socket, "IP_UNBLOCK_SOURCE"):
    setattr(socket, "IP_UNBLOCK_SOURCE", 37)
if not hasattr(socket, "IP_BLOCK_SOURCE"):
    setattr(socket, "IP_BLOCK_SOURCE", 38)
if not hasattr(socket, "IP_ADD_SOURCE_MEMBERSHIP"):
    setattr(socket, "IP_ADD_SOURCE_MEMBERSHIP", 39)
if not hasattr(socket, "IP_DROP_SOURCE_MEMBERSHIP"):
    setattr(socket, "IP_DROP_SOURCE_MEMBERSHIP", 40)


...but it would be nice if these were added to the official module as they are supported under current versions of Windows, Linux, and BSD at the least.

----------
components: Library (Lib)
messages: 402283
nosy: ciresnave
priority: normal
severity: normal
status: open
title: Missing support for Source Specific Multicast
type: enhancement
versions: Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45252>
_______________________________________


More information about the New-bugs-announce mailing list