forked from Mirrors/sngrep
Fix IPv6 parsing proccess
This commit is contained in:
parent
dbea0d8d15
commit
1702fad947
@ -334,7 +334,6 @@ capture_packet_parse(capture_packet_t *pkt)
|
||||
}
|
||||
|
||||
// Check if this packet belongs to a RTP stream
|
||||
// TODO Store this packet in the stream
|
||||
if ((stream = rtp_check_stream(pkt, pkt->ip_src, pkt->sport, pkt->ip_dst, pkt->dport))) {
|
||||
// We have an RTP packet!
|
||||
capture_packet_set_type(pkt, CAPTURE_PACKET_RTP);
|
||||
@ -558,6 +557,7 @@ capture_packet_free_frames(capture_packet_t *pkt)
|
||||
|
||||
while ((frame = vector_iterator_next(&it))) {
|
||||
sng_free(frame->data);
|
||||
frame->data = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -122,11 +122,6 @@ capture_packet_reasm_ip(capture_info_t *capinfo, const struct pcap_pkthdr *heade
|
||||
// Remove IP Header length from payload
|
||||
*size = *caplen - capinfo->link_hl - ip_hl;
|
||||
|
||||
#ifdef USE_IPV6
|
||||
if (ip_ver == 6)
|
||||
*size -= ntohs(ip6->ip6_ctlun.ip6_un1.ip6_un1_plen);
|
||||
#endif
|
||||
|
||||
// If no fragmentation
|
||||
if (ip_frag == 0) {
|
||||
// Just create a new packet with given network data
|
||||
|
Loading…
Reference in New Issue
Block a user