Update ndpi_ethernet definition

This commit is contained in:
Luca
2015-11-12 15:32:44 +01:00
parent 8399afa607
commit a407da79a9
2 changed files with 55 additions and 59 deletions
+1 -1
View File
@@ -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;