Skip to content
4 changes: 2 additions & 2 deletions src/ptf/dataplane.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,10 +881,10 @@ def format(self):
)
for recent_packet in self.recent_packets:
print("------------------------------")
if isinstance(self.expected_packet, packet.Packet):
if isinstance(recent_packet, packet.Packet):
# Dissect this packet as if it were an instance of
# the expected packet's class.
packet.ls(self.expected_packet.__class__(recent_packet))
packet.ls(recent_packet.__class__(recent_packet))
print("--")
packet.hexdump(recent_packet)
else:
Expand Down