Skip to content

Commit

Permalink
CA-389345: fix incorrect data type in python3
Browse files Browse the repository at this point in the history
  even if turning igmp snooping on in ovs bridge, if there is no
  external querier multicast traffic, ovs igmp snooping will not
  work, so we need to inject igmp traffic

Signed-off-by: Chunjie Zhu <[email protected]>
  • Loading branch information
chunjiez committed Aug 5, 2024
1 parent a849c1d commit f66981b
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 f66981b

Please sign in to comment.