From da8bb9f5b83d8d1ccea6f056476df38bd592ede0 Mon Sep 17 00:00:00 2001 From: bol-van Date: Tue, 23 Dec 2025 21:39:04 +0300 Subject: [PATCH] nfqws2: struct iphdr -> ip --- nfq2/desync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nfq2/desync.c b/nfq2/desync.c index 2baca46..68ad7eb 100644 --- a/nfq2/desync.c +++ b/nfq2/desync.c @@ -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);