fix wrong datalink type for Cisco PPP
This commit is contained in:
+2
-1
@@ -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,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]
|
||||
|
||||
Reference in New Issue
Block a user