Git Product home page Git Product logo

Comments (7)

alsmith avatar alsmith commented on June 3, 2024

Hi Mark - appreciate the feedback.

I'll merge the code that will do this in the next few minutes.

from multicast-relay.

eusmark avatar eusmark commented on June 3, 2024

Thank you so much for the quick response and fix!

I just tried it out and getting an exception. This appears to be a python3 vs python2 syntax issue. Will see if there is a quick fix, otherwise, will install python2 on this system.

eusmark@fe1-net2-relay: $ git clone https://github.com/alsmith/multicast-relay.git
Cloning into 'multicast-relay'...
remote: Enumerating objects: 324, done.
remote: Counting objects: 100% (29/29), done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 324 (delta 16), reused 24 (delta 16), pack-reused 295
Receiving objects: 100% (324/324), 119.07 KiB | 812.00 KiB/s, done.
Resolving deltas: 100% (194/194), done.
eusmark@fe1-net2-relay: $ cd multicast-relay
eusmark@fe1-net2-relay: multicast-relay$ sudo python3 ./multicast-relay.py --interfaces ens160 --listen 10.111.25.0/27 --noMDNS --noSSDP --noSonosDiscovery --relay 239.255.255.250:3702 --verbose --foreground
Apr-28 09:41:45 ./multicast-relay.py INFO: Adding multicast relay for 239.255.255.250:3702
Traceback (most recent call last):
File "./multicast-relay.py", line 1028, in
sys.exit(main())
File "./multicast-relay.py", line 1025, in main
packetRelay.loop()
File "./multicast-relay.py", line 507, in loop
if not len(list(filter(lambda addr: PacketRelay.onNetwork(remoteAddr[0], addr[0], PacketRelay.cidrToNetmask(addr[1])), self.listenAddr))):
File "./multicast-relay.py", line 507, in
if not len(list(filter(lambda addr: PacketRelay.onNetwork(remoteAddr[0], addr[0], PacketRelay.cidrToNetmask(addr[1])), self.listenAddr))):
File "./multicast-relay.py", line 874, in cidrToNetmask
return socket.inet_ntoa(struct.pack('!I', (1 << 32) - (1 << (32 - bits))))
TypeError: unsupported operand type(s) for -: 'int' and 'str'
eusmark@fe1-net2-relay:~/multicast-relay$

from multicast-relay.

alsmith avatar alsmith commented on June 3, 2024

Fix pushed - sorry about that.

from multicast-relay.

eusmark avatar eusmark commented on June 3, 2024

Just tested and works like a champ! Thank you!

from multicast-relay.

eusmark avatar eusmark commented on June 3, 2024

Will this continue to work on python2 as well?

from multicast-relay.

alsmith avatar alsmith commented on June 3, 2024

Can you give it a try... I took the plunge a while ago:

multicast-relay> python2 ./multicast-relay.py 
zsh: correct 'python2' to 'python3' [nyae]? n
zsh: command not found: python2
multicast-relay> 

from multicast-relay.

alsmith avatar alsmith commented on June 3, 2024

But basically if it worked on python2 yesterday, it will still work today.

from multicast-relay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.