summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlijia <[email protected]>2021-11-24 16:04:46 +0800
committerlijia <[email protected]>2021-11-24 16:04:46 +0800
commitfeca7d10186d3039738fcdecd96e3d2eeb231d85 (patch)
treeaa2dc24156f9d406a600fff4bf23475d8e998557
parentc9193fe2e5e9bad00174d6d72b693b279c030793 (diff)
TSG-8668, IP分片重组后的包ip层校验和错误.v4.2.69
-rw-r--r--src/dealpkt/deal_ipv4.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dealpkt/deal_ipv4.c b/src/dealpkt/deal_ipv4.c
index 5561ecc..f1e6ac4 100644
--- a/src/dealpkt/deal_ipv4.c
+++ b/src/dealpkt/deal_ipv4.c
@@ -556,6 +556,9 @@ found:
/*Adjust the ip flags*/
//((struct ip *)ipv4_qp->new_iph)->ip_off = 0x0040;
new_ip4h->ip_off = 0x0040;
+
+ sendpacket_do_checksum((unsigned char *)new_ip4h, IPPROTO_IP, sizeof(struct ip));
+
return new_ip4h;
}