Skip to content

Commit

Permalink
ignore ttl check not using the correct ip header for outer ipv4 and
Browse files Browse the repository at this point in the history
inner ipv6 test case

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
  • Loading branch information
abdosi committed Nov 14, 2023
1 parent 6266b90 commit d044f9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ansible/roles/test/files/ptftests/py3/hash_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,8 @@ def check_ipv6_route(self, hash_key, src_port, dst_port_lists):
masked_exp_pkt.set_do_not_care_scapy(scapy.Ether, "dst")
# mask the chksum also if masking the ttl
if self.ignore_ttl:
masked_exp_pkt.set_do_not_care_scapy(scapy.IPv6, "hlim")
masked_exp_pkt.set_do_not_care_scapy(scapy.IP, "ttl")
masked_exp_pkt.set_do_not_care_scapy(scapy.IP, "chksum")
masked_exp_pkt.set_do_not_care_scapy(scapy.TCP, "chksum")
masked_exp_pkt.set_do_not_care_scapy(scapy.Ether, "src")

Expand Down

0 comments on commit d044f9f

Please sign in to comment.