]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
Add error code ETIMEOUT(110) handle logic 478/head
authorJian Cheng <jian.cheng@shopee.com>
Thu, 8 Jun 2023 12:28:29 +0000 (20:28 +0800)
committerBrian <jian.cheng@shopee.com>
Thu, 8 Jun 2023 12:38:18 +0000 (20:38 +0800)
packet/probe_unix.c

index f7f393fca4833bd389ef36bf46cd5158fe9b84ff..8fd8cf1b85c4899733d43ddf1bc265757b27e153 100644 (file)
@@ -543,6 +543,8 @@ void report_packet_error(
         printf("%d address-in-use\n", command_token);
     } else if (errno == EADDRNOTAVAIL) {
         printf("%d address-not-available\n", command_token);
+    } else if (errno == ETIMEDOUT) {
+        printf("%d wait-tcp-respone-timeout\n", command_token);
     } else {
         printf("%d unexpected-error errno %d\n", command_token, errno);
     }