multicast-relay.py INFO: [mDNS] Relayed 302 bytes from 10.125.131.10:5353 on eth1.5 [ttl 255] to 224.0.0.251:5353 via eth1.10/10.125.0.1
Traceback (most recent call last):
File "multicast-relay.py", line 1048, in
sys.exit(main())
^^^^^^
File "multicast-relay.py", line 1045, in main
packetRelay.loop()
File "multicast-relay.py", line 628, in loop
data = PacketRelay.mdnsSetUnicastBit(data, ipHeaderLength)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "multicast-relay.py", line 396, in mdnsSetUnicastBit
labelLength = struct.unpack('B', udpData[ptr:ptr+1])[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
struct.error: unpack requires a buffer of 1 bytes
multicast-relay.py INFO: [mDNS] Relayed 302 bytes from 10.125.131.10:5353 on eth1.5 [ttl 255] to 224.0.0.251:5353 via eth1.10/10.125.0.1 Traceback (most recent call last): File "multicast-relay.py", line 1048, in
sys.exit(main())
^^^^^^
File "multicast-relay.py", line 1045, in main
packetRelay.loop()
File "multicast-relay.py", line 628, in loop
data = PacketRelay.mdnsSetUnicastBit(data, ipHeaderLength)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "multicast-relay.py", line 396, in mdnsSetUnicastBit
labelLength = struct.unpack('B', udpData[ptr:ptr+1])[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
struct.error: unpack requires a buffer of 1 bytes
@staticmethod def mdnsSetUnicastBit(data, ipHeaderLength): headers = data[:ipHeaderLength+8] udpData = data[ipHeaderLength+8:]