summaryrefslogtreecommitdiff
path: root/src/ptunnel.c
diff options
context:
space:
mode:
authorMasaq- <tilt@techie.com>2019-02-03 03:33:26 +0000
committerMasaq- <tilt@techie.com>2019-02-03 03:33:26 +0000
commitc1af90a23a14494a82df977861e9b0adc29f638d (patch)
treee680cacb29c48e9decd42a9ec8bfd206bb206437 /src/ptunnel.c
parent020634e1e84ab6063b0b403432002073bdaffe09 (diff)
parent6eb4245784b734e24870e2ba3c946527feb7f709 (diff)
Merge branch 'master' into extended-options
Diffstat (limited to 'src/ptunnel.c')
-rw-r--r--src/ptunnel.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ptunnel.c b/src/ptunnel.c
index 456a747..c87fa3f 100644
--- a/src/ptunnel.c
+++ b/src/ptunnel.c
@@ -34,7 +34,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*
* Contacting the author:
- * You can get in touch with me, Daniel Stødle (that's the Norwegian letter oe,
+ * You can get in touch with me, Daniel Stoedle (that's the Norwegian letter oe,
* in case your text editor didn't realize), here: <daniels@cs.uit.no>
*
* The official ptunnel website is here:
@@ -98,7 +98,7 @@ char pcap_filter_program[] = "icmp";
/** The chain of client/proxy connections */
proxy_desc_t *chain = 0;
-const char *state_name[kNum_proto_types] = { "start", "ack", "data",
+const char *state_name[kNum_proto_types] = { "start", "ack ", "data ",
"close", "authenticate" };
/* Let the fun begin! */
@@ -641,6 +641,7 @@ void* pt_proxy(void *args) {
if (cur->send_ring[idx].pkt && cur->send_ring[idx].last_resend+cur->resend_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;