From b88f3e2118b3a53f13b62516685414efb649a6b4 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Thu, 7 May 2020 20:35:35 +0000 Subject: [PATCH] Small fixes git-svn-id: svn://kolibrios.org@7892 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/network/icmp.inc | 6 +++--- programs/network/tracert/tracert.asm | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/programs/network/icmp.inc b/programs/network/icmp.inc index fb689adc65..36631cf18a 100644 --- a/programs/network/icmp.inc +++ b/programs/network/icmp.inc @@ -44,11 +44,11 @@ ICMP_PARAMPROB_ERRATPTR = 0 ; error at param ptr ICMP_PARAMPROB_OPTABSENT = 1 ; req. opt. absent ICMP_PARAMPROB_LENGTH = 2 ; bad length -ICMP_TSTAMP = 13 ; timestamp r= est +ICMP_TSTAMP = 13 ; timestamp request ICMP_TSTAMPREPLY = 14 ; timestamp reply -ICMP_IREQ = 15 ; information r= est +ICMP_IREQ = 15 ; information request ICMP_IREQREPLY = 16 ; information reply -ICMP_MASKREQ = 17 ; address mask r= est +ICMP_MASKREQ = 17 ; address mask request ICMP_MASKREPLY = 18 ; address mask reply ICMP_TRACEROUTE = 30 ; traceroute ICMP_DATACONVERR = 31 ; data conversion error diff --git a/programs/network/tracert/tracert.asm b/programs/network/tracert/tracert.asm index 4b34e0c1b6..cfdaa9c1b7 100644 --- a/programs/network/tracert/tracert.asm +++ b/programs/network/tracert/tracert.asm @@ -1,6 +1,6 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; -;; Copyright (C) KolibriOS team 2010-2017. All rights reserved. ;; +;; Copyright (C) KolibriOS team 2010-2020. All rights reserved. ;; ;; Distributed under terms of the GNU General Public License ;; ;; ;; ;; tracert.asm - Trace network route for KolibriOS ;; @@ -239,7 +239,7 @@ mainloop: test eax, eax jz fail2 - DEBUGF 2, "Answer after %u\n", eax + DEBUGF 2, "Answer of %u bytes\n", eax ; IP header length movzx esi, byte[buffer_ptr] @@ -263,6 +263,7 @@ mainloop: ;; jne .receive ; What kind of response is it? + DEBUGF 2, "Response Type: %u Code: %u\n", [esi + ICMP_header.Type], [esi + ICMP_header.Code] cmp [esi + ICMP_header.Type], ICMP_UNREACH_PORT je .last cmp [esi + ICMP_header.Type], ICMP_TIMXCEED