diff options
-rw-r--r-- | nosy-dump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nosy-dump.c b/nosy-dump.c index c070e27..00dd1e1 100644 --- a/nosy-dump.c +++ b/nosy-dump.c @@ -934,7 +934,7 @@ print_packet(unsigned long *data, size_t length) printf("]"); } - else if (length == sizeof(struct phy_packet)) { + else if (length == sizeof(struct phy_packet) && data[1] == ~data[2]) { struct phy_packet *pp = (struct phy_packet *) data; /* phy packet are 3 quadlets: the 1 quadlet payload, @@ -1018,7 +1018,7 @@ print_stats(unsigned long *data, size_t length) bus_reset_count++; else if (length < sizeof(struct phy_packet)) short_packet_count++; - else if (length == sizeof(struct phy_packet)) + else if (length == sizeof(struct phy_packet) && data[1] == ~data[2]) phy_packet_count++; else { struct link_packet *packet = (struct link_packet *) data; |