Skip to content

Commit

Permalink
minor cosmetic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
simonschdev committed Aug 23, 2024
1 parent 268ff3f commit fb344fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sflow/sflow_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ static void decodeIPLayer4(SFSample *sample, uint8_t *ptr) {
sample->offsetToPayload = ptr + sizeof(udp) - sample->header;
} break;
case 47: { /* GRE */
dbg_printf("GRE");
dbg_printf("GRE\n");
if (sample->parse_gre) {
struct mygreheader gre;
memcpy(&gre, ptr, sizeof(gre));
Expand All @@ -713,8 +713,8 @@ static void decodeIPLayer4(SFSample *sample, uint8_t *ptr) {
}
}
dbg_printf("GRE: Header type: %u\n", sample->headerProtocol);
sample->datap = sample->headerDescriptionStart; // Reset
sample->header = ptr + gre_header_length; // Start parsing header after GRE payload
sample->datap = sample->headerDescriptionStart; /* Reset parsing pointer for metadata */
sample->header = ptr + gre_header_length; /* Set parsing pointer for header to end of GRE header */
readFlowSample_header(sample);
return;
}
Expand Down

0 comments on commit fb344fb

Please sign in to comment.