Template
1
0
mirror of https://github.com/bol-van/zapret2.git synced 2026-03-14 06:13:09 +00:00

nfqws2: struct iphdr -> ip

This commit is contained in:
bol-van
2025-12-23 21:39:04 +03:00
parent 9e52d767d1
commit da8bb9f5b8

View File

@@ -282,9 +282,9 @@ static bool auto_hostlist_retrans
if (dis->ip)
{
ip = (struct ip*)pkt; ip6=NULL;
pktlen = sizeof(struct iphdr) + sizeof(struct tcphdr);
pktlen = sizeof(struct ip) + sizeof(struct tcphdr);
*ip = *dis->ip;
ip->ip_hl = sizeof(struct iphdr)/4; // remove ip options
ip->ip_hl = sizeof(struct ip)/4; // remove ip options
ip->ip_len = htons(pktlen);
ip->ip_id=0;
tcp = (struct tcphdr*)(ip+1);