This commit is contained in:
JOLIMAITRE Matthieu 2024-06-21 03:01:13 +02:00
parent d53d053f43
commit 08933e3529

View file

@ -22,7 +22,7 @@ fn main() -> Result<(), Box<dyn Error>> {
while let Ok(packet) = pcap.next_packet() {
total += 1;
let ether_type = &packet.data[20..][..2];
if ether_type == [0x08, 0x00] {
if ether_type == [0x00, 0x08] {
total_ipv4 += 1;
}
}