Skip to content

Commit

Permalink
Merge pull request #5909 from chunjiez/master
Browse files Browse the repository at this point in the history
CA-389345: fix incorrect data type in python3
  • Loading branch information
minglumlu authored Aug 6, 2024
2 parents 2097a16 + f66981b commit ecafbe5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ocaml/xenopsd/scripts/igmp_query_injector.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ def inject_packet(self, iface, dst_mac):
ether_part = Ether(src='00:00:00:00:00:00', dst=dst_mac)
ip_part = IP(ttl=1, src='0.0.0.0', dst='224.0.0.1')
igmp_part = IGMP(type=0x11)
igmp_part.mrcode = (self.max_resp_time / 100) & 0xff
# Should use integer division // in python 3
igmp_part.mrcode = (self.max_resp_time // 100) & 0xff
igmp_part.igmpize()
# Make this IGMP query packet as an unicast packet
ether_part.dst = dst_mac
Expand Down

0 comments on commit ecafbe5

Please sign in to comment.