From bb064bb52a6405116e53d33853fc254f0cb6398d Mon Sep 17 00:00:00 2001
From: Masaq- <tilt@techie.com>
Date: Tue, 29 Jan 2019 06:11:55 +0000
Subject: update the ICMP identifier of resent packets

---
 src/ptunnel.c | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src/ptunnel.c')

diff --git a/src/ptunnel.c b/src/ptunnel.c
index 8766acf..799d17b 100644
--- a/src/ptunnel.c
+++ b/src/ptunnel.c
@@ -629,6 +629,7 @@ void* pt_proxy(void *args) {
 			if (cur->send_ring[idx].pkt && cur->send_ring[idx].last_resend+kResend_interval < now) {
 				pt_log(kLog_debug, "Resending packet with seq-no %d.\n", cur->send_ring[idx].seq_no);
 				cur->send_ring[idx].last_resend   = now;
+				cur->send_ring[idx].pkt->identifier = htons(cur->icmp_id);
 				cur->send_ring[idx].pkt->seq      = htons(cur->ping_seq);
 				cur->ping_seq++;
 				cur->send_ring[idx].pkt->checksum = 0;
-- 
cgit v1.2.3