Delete redunant checksum setter

This commit is contained in:
Vadim Vetrov 2024-09-01 16:53:11 +03:00
parent 9c839a5094
commit 731da0dd50
No known key found for this signature in database
GPG Key ID: E8A308689D7A73A5

View File

@ -234,9 +234,6 @@ static int send_raw_ipv6(const uint8_t *pkt, uint32_t pktlen) {
.sin6_addr = iph->ip6_dst .sin6_addr = iph->ip6_dst
}; };
tcp6_set_checksum((void *)(uint8_t *)pkt + sizeof(struct ip6_hdr), (void *)pkt);
if (config.threads != 1) if (config.threads != 1)
pthread_mutex_lock(&rawsocket_lock); pthread_mutex_lock(&rawsocket_lock);