Module: kamailio
Branch: master
Commit: 68f93d27b9ee40cfce8c52304eac4ad9c83ee4b1
URL:
https://github.com/kamailio/kamailio/commit/68f93d27b9ee40cfce8c52304eac4ad…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-09-08T12:48:15+02:00
sipdump: init checksum filed
- silent analyzer
---
Modified: src/modules/sipdump/sipdump_pcap.c
---
Diff:
https://github.com/kamailio/kamailio/commit/68f93d27b9ee40cfce8c52304eac4ad…
Patch:
https://github.com/kamailio/kamailio/commit/68f93d27b9ee40cfce8c52304eac4ad…
---
diff --git a/src/modules/sipdump/sipdump_pcap.c b/src/modules/sipdump/sipdump_pcap.c
index 1a559cea59..52ef7b3b92 100644
--- a/src/modules/sipdump/sipdump_pcap.c
+++ b/src/modules/sipdump/sipdump_pcap.c
@@ -182,6 +182,7 @@ void sipdump_write_pcap(FILE *fs, sipdump_data_t *spd)
v_pcap_udp_header.src = ntohs(spd->src_port);
v_pcap_udp_header.dst = ntohs(spd->dst_port);
v_pcap_udp_header.length = ntohs(sizeof(struct pcap_udp_header) + data.len);
+ v_pcap_udp_header.checksum = 0;
/* IP header */
if (spd->afid == AF_INET6) {
@@ -243,4 +244,4 @@ void sipdump_write_pcap(FILE *fs, sipdump_data_t *spd)
LM_ERR("writing UDP payload to pcap failed: %s\n", strerror(errno));
}
fflush(fs);
-}
\ No newline at end of file
+}