summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/test_ip6.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_ip6.py b/test/test_ip6.py
index f2c4c00424e..7c43544286d 100644
--- a/test/test_ip6.py
+++ b/test/test_ip6.py
@@ -240,7 +240,7 @@ class TestIPv6(TestIPv6ND):
:param int packet_size: Required packet size.
:param Scapy pkt: Packet to be modified.
"""
- dst_if_idx = packet_size / 10 % 2
+ dst_if_idx = int(packet_size / 10 % 2)
dst_if = self.flows[src_if][dst_if_idx]
info = self.create_packet_info(src_if, dst_if)
payload = self.info_to_payload(info)