diff options
author | Luca <deri@ntop.org> | 2015-11-12 15:32:44 +0100 |
---|---|---|
committer | Luca <deri@ntop.org> | 2015-11-12 15:32:44 +0100 |
commit | a407da79a9dbfda381c46056f02f261664172488 (patch) | |
tree | b69671691af5b9b141c332807adbd56e514cf18e /example/ndpiReader.c | |
parent | 8399afa607ca5e69deeceee0f1fbd0b12cec2192 (diff) |
Update ndpi_ethernet definition
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |