Skip to content

Commit

Permalink
eep: do not save packets in HEP parser function #494
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaian committed Jul 23, 2024
1 parent c4e165d commit 6ee2c9c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/capture_eep.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ accept_eep_client(void *info)
if (capture_packet_parse(pkt) != 0) {
packet_destroy(pkt);
}

// Store this packets in output file
capture_dump_packet(pkt);

capture_unlock();
}
}
Expand Down Expand Up @@ -678,9 +682,6 @@ capture_eep_receive_v2()
// We don't longer require frame payload anymore, because adding the frame to packet clones its memory
sng_free(frame_payload);

// Store this packets in output file
capture_dump_packet(pkt);

/* FREE */
sng_free(payload);
return pkt;
Expand Down Expand Up @@ -863,9 +864,6 @@ capture_eep_receive_v3(const u_char *pkt, uint32_t size)
// We don't longer require frame payload anymore, because adding the frame to packet clones its memory
sng_free(frame_payload);

// Store this packets in output file
capture_dump_packet(pkt_new);

/* FREE */
sng_free(payload);
return pkt_new;
Expand Down

0 comments on commit 6ee2c9c

Please sign in to comment.