[issue45252] Missing support for Source Specific Multicast

2021-09-24 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___

[issue45252] Missing support for Source Specific Multicast

2021-09-20 Thread CireSnave
New submission from CireSnave : 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_S

[issue45143] ipaddress multicast v6 RFC documentation correction

2021-09-08 Thread Hanu
New submission from Hanu : In the ipaddress library documentation related to multicast. https://docs.python.org/3/library/ipaddress.html#ip-addresses the is_multicast, refers to the v6 multicast RFC as 2373: "is_multicast True if the address is reserved for multicast use. See RFC

[issue31922] Can't receive replies from multicast UDP with asyncio

2020-10-21 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue31922] Can't receive replies from multicast UDP with asyncio

2020-10-16 Thread Irit Katriel
Irit Katriel added the comment: Can this be closed? -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37749] ipaddress - is_global method all multicast addresses and networks return true

2020-02-05 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +pmoody versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37749] ipaddress - is_global method all multicast addresses and networks return true

2019-08-02 Thread Brandon James
Change by Brandon James : -- keywords: +patch pull_requests: +14833 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15088 ___ Python tracker ___

[issue37749] ipaddress - is_global method all multicast addresses and networks return true

2019-08-02 Thread Brandon James
New submission from Brandon James : When using the ipaddress library, all multicast addresses and networks return True when using the is_global method for their respective classes. I believe their are two possible fixes for this. 1) In practice no multicast addresses are globally routable

[issue31922] Can't receive replies from multicast UDP with asyncio

2019-05-07 Thread miss-islington
miss-islington added the comment: New changeset 19ca5b500af4b66e1082a03d8fbf448e1f56af30 by Miss Islington (bot) in branch '3.7': bpo-31922: Do not connect UDP sockets when broadcast is allowed (GH-423) https://github.com/python/cpython/commit/19ca5b500af4b66e1082a03d8fbf448e1f56af30

[issue31922] Can't receive replies from multicast UDP with asyncio

2019-05-07 Thread miss-islington
miss-islington added the comment: New changeset 63deaa5b70108ef441c57728322da6b4321db4fc by Miss Islington (bot) (Vincent Michel) in branch 'master': bpo-31922: Do not connect UDP sockets when broadcast is allowed (GH-423)

[issue31922] Can't receive replies from multicast UDP with asyncio

2019-05-07 Thread miss-islington
Change by miss-islington : -- keywords: +patch pull_requests: +13081 stage: -> patch review ___ Python tracker ___ ___

[issue31922] Can't receive replies from multicast UDP with asyncio

2018-09-14 Thread STINNER Victor
Change by STINNER Victor : -- versions: -Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___ ___

[issue31922] Can't receive replies from multicast UDP with asyncio

2017-11-02 Thread Vincent Michel
New submission from Vincent Michel <vxgmic...@gmail.com>: It's currently not possible to receive replies from multicast UDP with asyncio, as reported in the following issue: https://github.com/python/asyncio/issues/480 That's because asyncio connects the UDP socket to the broadcast a

[issue23127] socket.setsockopt() is still broken for multicast TTL and Loop options

2015-01-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: Application code should pass the correct length of value. -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23127

[issue23127] socket.setsockopt() is still broken for multicast TTL and Loop options

2014-12-31 Thread Bertrand Janin
= (char *) flag; buflen = sizeof flag; +#if defined(__OpenBSD__) +/* Multicast options take shorter arguments */ +if (optname == IP_MULTICAST_TTL || optname == IP_MULTICAST_LOOP) { +buflen = sizeof(u_char); +*buf = (u_char)flag; +} +#endif

[issue23127] socket.setsockopt() is still broken for multicast TTL and Loop options

2014-12-30 Thread Bertrand Janin
Bertrand Janin added the comment: I don't really need it in my own software, I was trying to use https://github.com/SoCo/SoCo/ and couldn't get it working on OpenBSD. I'm sure this is a portability problem on a number of library using Multicast. Do you see something wrong with the patch

[issue23127] socket.setsockopt() is still broken for multicast TTL and Loop options

2014-12-30 Thread Benjamin Peterson
Benjamin Peterson added the comment: We don't really have a precedent for adjusting the size automatically when integers are passed to setsockopt. Anyway, your patch will be wrong for big-endian systems. -- ___ Python tracker rep...@bugs.python.org

[issue23127] socket.setsockopt() is still broken for multicast TTL and Loop options

2014-12-29 Thread Bertrand Janin
: u_char ttl; /* range: 0 to 255, default = 1 */ setsockopt(s, IPPROTO_IP, IP_MULTICAST_TTL, ttl, sizeof(ttl)); The following updated patch for branch 2.7 passes a shorter optlen for certain Multicast options, it was tested on OpenBSD, Linux and OSX and was initially proposed by niallo

[issue23127] socket.setsockopt() is still broken for multicast TTL and Loop options

2014-12-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: Just use the extended signature of the setsockopt: mysocket.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, struct.pack(B, desired_ttl)) -- nosy: +benjamin.peterson ___ Python tracker

[issue3372] socket.setsockopt() is broken for multicast TTL and Loop options

2014-12-28 Thread Bertrand Janin
Bertrand Janin added the comment: This is still an issue as of OpenBSD 5.6. Here is an updated patch for the latest 2.7 branch: diff -r 88de50c1696b Modules/socketmodule.c --- a/Modules/socketmodule.cSun Dec 28 18:51:25 2014 +0200 +++ b/Modules/socketmodule.cSun Dec 28 21:24:41 2014

[issue22418] ipaddress.py new IPv6 Method for Solicited Multicast Address

2014-09-16 Thread Eric V. Smith
Eric V. Smith added the comment: Changing to 3.5 only, as this is an API addition so it can only be added there. I think that raising an exception instead of retuning None for a multicast address would be a better API. Any chance you can write some tests? Thanks! -- nosy

[issue22418] ipaddress.py new IPv6 Method for Solicited Multicast Address

2014-09-15 Thread Jason Nadeau
New submission from Jason Nadeau: I found it was useful to me to calculate and return an IPv6Address instance of the solicited multicast address for a particular IPv6Address. So I have created patch to do so. I am pretty new to programming in general so critiques are totally welcome

[issue22418] ipaddress.py new IPv6 Method for Solicited Multicast Address

2014-09-15 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +ncoghlan, pmoody ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22418 ___ ___ Python-bugs-list mailing

[issue22418] ipaddress.py new IPv6 Method for Solicited Multicast Address

2014-09-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22418 ___ ___ Python-bugs-list mailing

[issue2574] Add RFC 3768 SSM Multicast support to socket

2014-06-22 Thread Mark Lawrence
Mark Lawrence added the comment: Looks as if the status was inadvertently set to languishing. Stage needs setting to patch review. The patch is effectively all new C code but there are no doc changes or tests. -- nosy: +BreamoreBoy ___ Python

monitor multicast traffic/IP

2013-08-20 Thread jasonguto
Folks: I am a Network Engineer, but have been trying to teach myself Python since Cisco will be leverage it on new high end models, yet I am very new to programming and Python; however, I have a need to have the ability to monitor traffic, more specificity multicast packets from a few sources

Re: monitor multicast traffic/IP

2013-08-20 Thread ElChino
jasong...@gmail.com wrote: I am a Network Engineer, but have been trying to teach myself Python since Cisco will be leverage it on new high end models, yet I am very new to programming and Python; however, I have a need to have the ability to monitor traffic, more specificity multicast

Concurrent multicast udp socket

2013-04-09 Thread emmanuel . richiardone
Dear all I have a problem with multicast sockets of the same port but belonging to different groups. For example, I have two udp sockets, listening on the same local address and same port; for each one I set the sockopt to listen on a specific multicast group (I can also see the igmp packets

[issue1462440] socket and threading: udp multicast setsockopt fails

2011-08-30 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: -- resolution: - invalid stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1462440

[issue12373] Duplicate packets in Multicast Receiver

2011-06-20 Thread Aleksey Zhurbitsky
New submission from Aleksey Zhurbitsky zhurbit...@gmail.com: I use http://svn.python.org/projects/python/trunk/Demo/sockets/mcast.py to receive multicast stream. When i run one instance of this script to receive certain multicats stream all is fine, but when i run two instance of this script

[issue12373] Duplicate packets in Multicast Receiver

2011-06-20 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: This is normal. You're binding twice to the same port thanks to SO_REUSEADDR, but in case of multiple binds to the same UDP port, all packets received are duplicated by the kernel to every socket. Closing as invalid. -- nosy:

[issue12373] Duplicate packets in Multicast Receiver

2011-06-20 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Note that the duplication is mandatory for multicast, but with unicast the kernel is free to do whatever he wants, most of the time only one socket will receive it. -- ___ Python tracker

[issue11247] Error sending packets to multicast IPV4 address

2011-04-29 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: Closing as invalid, since it's definitely not a Python issue, but much more likely a network configuration problem. -- resolution: - invalid status: open - closed ___ Python tracker

[issue11247] Error sending packets to multicast IPV4 address

2011-04-27 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: Suggesting to close. -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11247 ___

[issue11247] Error sending packets to multicast IPV4 address

2011-02-19 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: Are you using a default gateway ? Are you sure this gateway supports multicast ? See for example http://www.sockets.com/err_lst1.htm#WSAENETUNREACH : WSAENETUNREACH (10051) Network is unreachable. Berkeley description: A socket

[issue11247] Error sending packets to multicast IPV4 address

2011-02-18 Thread Dan Mahn
New submission from Dan Mahn dan.m...@digidescorp.com: Can't send UDP packet to multicast address. See traceback. s.sendto( bytearray, (227.5.6.7, 6543)) socket.error: [Errno 10065] A socket operation was attempted to an unreachable host -- components: +None title: e - Error

[issue11247] Error sending packets to multicast IPV4 address

2011-02-18 Thread Dan Mahn
Dan Mahn dan.m...@digidescorp.com added the comment: This has occurred in RC3 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11247 ___ ___

[issue11247] Error sending packets to multicast IPV4 address

2011-02-18 Thread Case Van Horsen
Case Van Horsen cas...@gmail.com added the comment: I tested multicast without any issues using the attached script. I used RC3 on both Windows 7 and Linux. I did need to disable the firewall on my Windows system before multicast would work. Start one or more clients using: python mtest1.py

[issue1462440] socket and threading: udp multicast setsockopt fails

2010-09-22 Thread Charles-Francois Natali
) So it's not a Python bug. Since multicast is tricky, it might be a good idea to add a short example somewhere in the documentation though. -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1462440

[issue1462440] socket and threading: udp multicast setsockopt fails

2010-08-22 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: I can't reproduce this on Windows Vista can someone please confirm my findings. -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker

[issue2574] Add RFC 3768 SSM Multicast support to socket

2010-05-07 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone exar...@twistedmatrix.com: -- keywords: +needs review status: open - languishing versions: +Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2574

Re: multicast

2009-11-04 Thread Seb
is bound on (0.0.0.0:1501) self.sock.bind((ANY,SENDERPORT)) #Tell the kernel that we want to multicast and that the data is sent #to everyone (255 is the level of multicasting) self.sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, 255) def send(self

[issue5379] Multicast example mcast.py is outdated and ugly

2009-05-03 Thread Philipp Hagemeister
Philipp Hagemeister phi...@phihag.de added the comment: Updated patch to use the new ipaddr module instead of the platform-specific socket.inet_pton (unavailable on some platforms, including Windows XP) Updated formatting -- Added file:

[issue5379] Multicast example mcast.py is outdated and ugly

2009-05-03 Thread Philipp Hagemeister
Changes by Philipp Hagemeister phi...@phihag.de: Removed file: http://bugs.python.org/file13198/mcast-example.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5379 ___

[issue5379] Multicast example mcast.py is outdated and ugly

2009-05-03 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: thanks! committed in r72237 py3k r72238. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5379

[issue1462440] socket and threading: udp multicast setsockopt fails

2009-03-20 Thread Daniel Diniz
Changes by Daniel Diniz aja...@gmail.com: -- components: +Extension Modules stage: - needs patch title: udp multicast setsockopt fails - socket and threading: udp multicast setsockopt fails type: - behavior versions: +Python 2.6, Python 3.0 -Python 2.4

[issue5379] Multicast example mcast.py is outdated and ugly

2009-02-26 Thread Philipp Hagemeister
New submission from Philipp Hagemeister phi...@phihag.de: The multicast example Demo/sockets/mcast.py 1. mentions that multicast is only implemented on SGI (and optional on other systems). That is not the case anymore. 2. Includes completely unrelated code for broadcast transmission

[issue5379] Multicast example mcast.py is outdated and ugly

2009-02-26 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: heh yuck that code was ancient. thanks for the update, i'll submit it. -- assignee: - gregory.p.smith nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org

[issue5379] Multicast example mcast.py is outdated and ugly

2009-02-26 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5379 ___ ___ Python-bugs-list

Twisted Matrix and multicast broadcast

2008-10-09 Thread Stodge
I'm trying to get a simple multicast application working using Twisted; so far I have: from twisted.internet.protocol import DatagramProtocol from twisted.internet import reactor from twisted.application.internet import MulticastServer class MulticastServerUDP(DatagramProtocol): def

Re: Twisted Matrix and multicast broadcast

2008-10-09 Thread Jean-Paul Calderone
On Thu, 9 Oct 2008 06:03:44 -0700 (PDT), Stodge [EMAIL PROTECTED] wrote: [snip] class MulticastServerUDP(DatagramProtocol): def startProtocol(self): print 'Started Listening' # Join a specific multicast group, which is the IP we will respond to self.transport.joinGroup

Re: Twisted Matrix and multicast broadcast

2008-10-09 Thread Stodge
On Oct 9, 9:33 am, Jean-Paul Calderone [EMAIL PROTECTED] wrote: On Thu, 9 Oct 2008 06:03:44 -0700 (PDT), Stodge [EMAIL PROTECTED] wrote: [snip] class MulticastServerUDP(DatagramProtocol):    def startProtocol(self):        print 'Started Listening'        # Join a specific multicast

[issue2574] Add RFC 3768 SSM Multicast support to socket

2008-10-06 Thread T.Morin
Added file: http://bugs.python.org/file11709/python-release26maint-multicast-ssm.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2574 ___ ___ Python-bugs-list

[issue2574] Add RFC 3768 SSM Multicast support to socket

2008-09-22 Thread T.Morin
T.Morin [EMAIL PROTECTED] added the comment: Exercising the API fully requires an SSM capable multicast LAN. ... and it also requires a host IP stack implementing the API, which is not yet (AFAIK) the case for Mac OS X, even very recent releases. I think you will need a Windows or Linux box

[issue2574] Add RFC 3768 SSM Multicast support to socket

2008-09-17 Thread Bill Janssen
Bill Janssen [EMAIL PROTECTED] added the comment: I tried applying this patch to a clean SVN checkout of the 2.6 trunk on an OS X Leopard machine and it works (except for the part which patches configure.in). I then built the source tree and ran the test_socket test, which also worked fine. I

[issue2574] Add RFC 3768 SSM Multicast support to socket

2008-09-17 Thread Bill Janssen
Bill Janssen [EMAIL PROTECTED] added the comment: On Wed, Sep 17, 2008 at 10:45 AM, bms [EMAIL PROTECTED] wrote: Exercising the API fully requires an SSM capable multicast LAN. Let's hope the PARC network is still up-to-date. It was when we were developing multicast here some 15-20 years

[issue2574] Add RFC 3768 SSM Multicast support to socket

2008-09-16 Thread T.Morin
Changes by T.Morin [EMAIL PROTECTED]: -- nosy: +tmorin ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2574 ___ ___ Python-bugs-list mailing list

Python sockets UDP broadcast multicast question??

2008-08-28 Thread inorlando
Hi all, I have a question about python and sockets , UDP datagram in particular. I'm new to socket programming so please bare with me. I am trying to write a simple application that broadcast files to another computer on the same network/subnet but I do not want the receiver computer to have to

Re: Python sockets UDP broadcast multicast question??

2008-08-28 Thread Francesco Bochicchio
is overloaded, you can loose packets or receive them in the wrong order. So, first of all, if you cannon tolerate packet loss, consider switching the protocol to TCP. If you cannot change protocol (maybe because TCP has no multicast), then try to reduce the load on the computer and the network, e.g

Re: Python sockets UDP broadcast multicast question??

2008-08-28 Thread inorlando
because TCP has no multicast), then try to reduce the load on the computer and the network, e.g. by inserting a delay between two packet transmissions. But remember that this only reduce, does not cancel, the possibility of packet loss or packet mis-ordering. Of course, it could be a bug in your

Re: Python sockets UDP broadcast multicast question??

2008-08-28 Thread castironpi
On Aug 28, 1:09 am, inorlando [EMAIL PROTECTED] wrote: Hi all, I have a question about python and sockets , UDP datagram in particular. I'm new to socket programming so please bare with me. I am trying to write a simple application that broadcast files to another computer on the same

[issue3372] socket.setsockopt() is broken for multicast TTL and Loop options

2008-07-15 Thread Niall O'Higgins
Niall O'Higgins [EMAIL PROTECTED] added the comment: This also appears to be a bug in Python 2.4. -- versions: +Python 2.4 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3372 ___

Re: How to get a multicast to wait for all nodes?

2008-06-27 Thread Colin J. Williams
Ryuke wrote: I have a code that receives gps information from nodes and gives off its own coordinates via radios connected by Ethernet. but the code continues to run after receiving only 1 set of coordinates, how do i get it to wait for multiple nodes to send before continuing You might

Re: How to get a multicast to wait for all nodes?

2008-06-27 Thread Ryuke
,netdict[key]) for c in netdict[NODE_LIST][1:]: print '[netge module] NbrNode %d'% ord(c) #Create heart beat data packet for multicast xfer #gpsdata.append(time.ctime()) print '[netge module] mynode location = ',netdict[MYNODE_LOCATION] #netdict[MYNODE_LOCATION

How to get a multicast to wait for all nodes?

2008-06-26 Thread Ryuke
I have a code that receives gps information from nodes and gives off its own coordinates via radios connected by Ethernet. but the code continues to run after receiving only 1 set of coordinates, how do i get it to wait for multiple nodes to send before continuing --

[issue2574] Add RFC 3768 SSM Multicast support to socket

2008-04-08 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Ok, we'll see what we can do. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2574 __ ___ Python-bugs-list mailing list

[issue2574] Add RFC 3768 SSM Multicast support to socket

2008-04-07 Thread bms
New submission from bms [EMAIL PROTECTED]: Hi, Here is a patch to add RFC 3768 SSM Multicast support to low-level Python socket module as of 2.5.1. I have not tested the setsourcefilter()/getsourcefilter() socket member functions other than compiling the patch on a Gentoo Linux 2008.0 box w

[issue2574] Add RFC 3768 SSM Multicast support to socket

2008-04-07 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Can you submit a patch against the trunk? There aren't going to be any new features in 2.5. -- nosy: +benjamin.peterson __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2574

[issue2574] Add RFC 3768 SSM Multicast support to socket

2008-04-07 Thread bms
bms [EMAIL PROTECTED] added the comment: Benjamin Peterson wrote: Benjamin Peterson [EMAIL PROTECTED] added the comment: Can you submit a patch against the trunk? There aren't going to be any new features in 2.5. Would a patch against 2.6a2 be OK? I have had a lot of problems building

[issue2574] Add RFC 3768 SSM Multicast support to socket

2008-04-07 Thread bms
bms [EMAIL PROTECTED] added the comment: Bruce M Simpson wrote: Benjamin Peterson wrote: Benjamin Peterson [EMAIL PROTECTED] added the comment: Can you submit a patch against the trunk? There aren't going to be any new features in 2.5. Would a patch against 2.6a2 be OK? I have had a

[ python-Bugs-1462440 ] udp multicast setsockopt fails

2006-04-05 Thread SourceForge.net
thread, including the initial issue submission, for this request, not just the latest update. Category: Windows Group: Python 2.4 Status: Open Resolution: None Priority: 5 Submitted By: Alan G (abgrover) Assigned to: Nobody/Anonymous (nobody) Summary: udp multicast setsockopt fails Initial Comment

[ python-Bugs-1462440 ] udp multicast setsockopt fails

2006-03-31 Thread SourceForge.net
of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Windows Group: Python 2.4 Status: Open Resolution: None Priority: 5 Submitted By: Alan G (abgrover) Assigned to: Nobody/Anonymous (nobody) Summary: udp multicast setsockopt fails