Skip to content

Commit

Permalink
capture: replace fake HEP frames for network captured packets #494
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaian committed Jul 23, 2024
1 parent 219cb5b commit c4e165d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c4e165d

Please sign in to comment.