From a407da79a9dbfda381c46056f02f261664172488 Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 12 Nov 2015 15:32:44 +0100 Subject: Update ndpi_ethernet definition --- example/ndpiReader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example/ndpiReader.c') diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 337bdd36c..0d473f58a 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1667,7 +1667,7 @@ static void pcap_packet_callback(u_char *args, case DLT_EN10MB : ethernet = (struct ndpi_ethhdr *) &packet[eth_offset]; ip_offset = sizeof(struct ndpi_ethhdr) + eth_offset; - check = ntohs(ethernet->h_lt); + check = ntohs(ethernet->h_proto); if(check <= 1500) pyld_eth_len = check; -- cgit v1.2.3