Skip to content

Commit ecafbe5

Browse files
authored
Merge pull request #5909 from chunjiez/master
CA-389345: fix incorrect data type in python3
2 parents 2097a16 + f66981b commit ecafbe5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ocaml/xenopsd/scripts/igmp_query_injector.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ def inject_packet(self, iface, dst_mac):
5353
ether_part = Ether(src='00:00:00:00:00:00', dst=dst_mac)
5454
ip_part = IP(ttl=1, src='0.0.0.0', dst='224.0.0.1')
5555
igmp_part = IGMP(type=0x11)
56-
igmp_part.mrcode = (self.max_resp_time / 100) & 0xff
56+
# Should use integer division // in python 3
57+
igmp_part.mrcode = (self.max_resp_time // 100) & 0xff
5758
igmp_part.igmpize()
5859
# Make this IGMP query packet as an unicast packet
5960
ether_part.dst = dst_mac

0 commit comments

Comments
 (0)