From c4e165d5399e2b2b1b8c61bcf8fd56f79bdc3e16 Mon Sep 17 00:00:00 2001 From: Kaian Date: Tue, 23 Jul 2024 09:26:50 +0200 Subject: [PATCH] capture: replace fake HEP frames for network captured packets #494 --- src/capture.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/capture.c b/src/capture.c index 6d19d3d1..7bdf334d 100644 --- a/src/capture.c +++ b/src/capture.c @@ -394,6 +394,11 @@ parse_packet(u_char *info, const struct pcap_pkthdr *header, const u_char *packe if (pkt_hep3) { packet_destroy(pkt); pkt = pkt_hep3; + // Replace fake HEP generated frames with captured ones + vector_set_destroyer(pkt->frames, vector_generic_destroyer); + vector_destroy(pkt->frames); + pkt->frames = vector_create(1, 1); + packet_add_frame(pkt, header, packet); } else { // Complete packet with Transport information packet_set_type(pkt, PACKET_SIP_UDP);