mirror of https://github.com/python/cpython
gh-89415: Add source-specific multicast constants to socket module (#103684)
Add socket options for source-specific multicast when present as C #defines. Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
This commit is contained in:
parent
9169a56fad
commit
1d99e9e46e
|
@ -0,0 +1,2 @@
|
|||
Add :mod:`socket` constants for source-specific multicast.
|
||||
Patch by Reese Hyde.
|
|
@ -8418,6 +8418,18 @@ socket_exec(PyObject *m)
|
|||
#ifdef IP_BIND_ADDRESS_NO_PORT
|
||||
ADD_INT_MACRO(m, IP_BIND_ADDRESS_NO_PORT);
|
||||
#endif
|
||||
#ifdef IP_UNBLOCK_SOURCE
|
||||
ADD_INT_MACRO(m, IP_UNBLOCK_SOURCE);
|
||||
#endif
|
||||
#ifdef IP_BLOCK_SOURCE
|
||||
ADD_INT_MACRO(m, IP_BLOCK_SOURCE);
|
||||
#endif
|
||||
#ifdef IP_ADD_SOURCE_MEMBERSHIP
|
||||
ADD_INT_MACRO(m, IP_ADD_SOURCE_MEMBERSHIP);
|
||||
#endif
|
||||
#ifdef IP_DROP_SOURCE_MEMBERSHIP
|
||||
ADD_INT_MACRO(m, IP_DROP_SOURCE_MEMBERSHIP);
|
||||
#endif
|
||||
|
||||
/* IPv6 [gs]etsockopt options, defined in RFC2553 */
|
||||
#ifdef IPV6_JOIN_GROUP
|
||||
|
|
Loading…
Reference in New Issue