aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorCampus <campus@ntop.org>2018-02-15 21:26:38 +0100
committerCampus <campus@ntop.org>2018-02-15 21:26:38 +0100
commit9e47e49adef21b3f1b05898c90038477b277bbaf (patch)
tree1733e32f23e8272da7b4ff2713b6e51146831be3 /example
parentdf54e8b926dcb4ebb3f4bae49197c2d5988464ee (diff)
fix wrong increment for MPLS double header
Diffstat (limited to 'example')
-rw-r--r--example/ndpi_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/ndpi_util.c b/example/ndpi_util.c
index af83c6d14..104aa4db5 100644
--- a/example/ndpi_util.c
+++ b/example/ndpi_util.c
@@ -855,9 +855,9 @@ struct ndpi_proto ndpi_workflow_process_packet (struct ndpi_workflow * workflow,
type = ETH_P_IP, ip_offset += 4;
while(!mpls.mpls.s) {
- ip_offset += 4;
mpls.u32 = *((uint32_t *) &packet[ip_offset]);
mpls.u32 = ntohl(mpls.u32);
+ ip_offset += 4;
}
break;
case PPPoE: