Commits

Jason R. Coombs committed b675a6f

Fix issue in icmp ping

  • Participants
  • Parent commits 45b8475

Comments (0)

Files changed (1)

File jaraco/net/icmp.py

 	icmp_socket = socket.socket(socket.AF_INET, socket.SOCK_RAW, icmp_proto)
 	icmp_port = 1
 	id = random.randint(0,2**16-1)
-	data = struct.pack("d", time.clock())+'Q'*192
+	data = struct.pack("d", time.clock())+b'Q'*192
 	data = data[:192]
 	header = pack_echo_header(id, data)
 	packet = header + data