fix wrong datalink type for Cisco PPP

This commit is contained in:
Campus
2017-07-29 23:44:47 +02:00
parent f336f1a340
commit a90b97bc10
3 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -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);
-1
View File
@@ -1,4 +1,3 @@
READER="../example/ndpiReader -p ../example/protos.txt"
RC=0
@@ -0,0 +1,3 @@
BGP 14 969 1
1 TCP 100.16.1.2:18324 <-> 100.16.1.1:179 [proto: 13/BGP][7 pkts/388 bytes <-> 7 pkts/581 bytes]