diff options
author | Campus <campus@ntop.org> | 2017-07-29 23:44:47 +0200 |
---|---|---|
committer | Campus <campus@ntop.org> | 2017-07-29 23:44:47 +0200 |
commit | a90b97bc10a392b34344c89c59d059260c184b50 (patch) | |
tree | 77e6fa5debd373473503fa26bbbe777b4411faee /example | |
parent | f336f1a340b4d6bf417fab56e76b5a7937b8b368 (diff) |
fix wrong datalink type for Cisco PPP
Diffstat (limited to 'example')
-rw-r--r-- | example/ndpi_util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/example/ndpi_util.c b/example/ndpi_util.c index 96a88a8e5..1fc3af15a 100644 --- a/example/ndpi_util.c +++ b/example/ndpi_util.c @@ -652,8 +652,9 @@ struct ndpi_proto ndpi_workflow_process_packet (struct ndpi_workflow * workflow, type = ntohs(chdlc->proto_code); break; - /* Cisco PPP with HDLC framing - 104 */ + /* Cisco PPP - 9 or 104 */ case DLT_C_HDLC: + case DLT_PPP: chdlc = (struct ndpi_chdlc *) &packet[eth_offset]; ip_offset = sizeof(struct ndpi_chdlc); /* CHDLC_OFF = 4 */ type = ntohs(chdlc->proto_code); |