fix wrong increment for MPLS double header
This commit is contained in:
+1
-1
@@ -855,9 +855,9 @@ struct ndpi_proto ndpi_workflow_process_packet (struct ndpi_workflow * workflow,
|
|||||||
type = ETH_P_IP, ip_offset += 4;
|
type = ETH_P_IP, ip_offset += 4;
|
||||||
|
|
||||||
while(!mpls.mpls.s) {
|
while(!mpls.mpls.s) {
|
||||||
ip_offset += 4;
|
|
||||||
mpls.u32 = *((uint32_t *) &packet[ip_offset]);
|
mpls.u32 = *((uint32_t *) &packet[ip_offset]);
|
||||||
mpls.u32 = ntohl(mpls.u32);
|
mpls.u32 = ntohl(mpls.u32);
|
||||||
|
ip_offset += 4;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case PPPoE:
|
case PPPoE:
|
||||||
|
|||||||
Reference in New Issue
Block a user