From 3a52dbf6bc51bad48253f3b4ebb0e332837ac7fa Mon Sep 17 00:00:00 2001 From: "Bruce A. Mah" Date: Fri, 6 Aug 2021 17:58:38 -0700 Subject: [PATCH] If doing complete packet diff, include the entire packet contents. --- pcap_diff.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pcap_diff.py b/pcap_diff.py index e12b3c3..979ebd8 100755 --- a/pcap_diff.py +++ b/pcap_diff.py @@ -329,9 +329,11 @@ def compare_summary (): found_packet = False for dump in dumps: - if dump.get(serial_packet): - del dump[serial_packet] - found_packet = True + packet2 = dump.get(serial_packet) + if packet2: + if packet == packet2 or not complete_diff: + del dump[serial_packet] + found_packet = True if not diff_only_right and not found_packet: if show_diffs: