forked from KolibriOS/kolibrios
Small fixes
git-svn-id: svn://kolibrios.org@7892 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
d0a8eb080c
commit
b88f3e2118
@ -44,11 +44,11 @@ ICMP_PARAMPROB_ERRATPTR = 0 ; error at param ptr
|
|||||||
ICMP_PARAMPROB_OPTABSENT = 1 ; req. opt. absent
|
ICMP_PARAMPROB_OPTABSENT = 1 ; req. opt. absent
|
||||||
ICMP_PARAMPROB_LENGTH = 2 ; bad length
|
ICMP_PARAMPROB_LENGTH = 2 ; bad length
|
||||||
|
|
||||||
ICMP_TSTAMP = 13 ; timestamp r= est
|
ICMP_TSTAMP = 13 ; timestamp request
|
||||||
ICMP_TSTAMPREPLY = 14 ; timestamp reply
|
ICMP_TSTAMPREPLY = 14 ; timestamp reply
|
||||||
ICMP_IREQ = 15 ; information r= est
|
ICMP_IREQ = 15 ; information request
|
||||||
ICMP_IREQREPLY = 16 ; information reply
|
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_MASKREPLY = 18 ; address mask reply
|
||||||
ICMP_TRACEROUTE = 30 ; traceroute
|
ICMP_TRACEROUTE = 30 ; traceroute
|
||||||
ICMP_DATACONVERR = 31 ; data conversion error
|
ICMP_DATACONVERR = 31 ; data conversion error
|
||||||
|
@ -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 ;;
|
;; Distributed under terms of the GNU General Public License ;;
|
||||||
;; ;;
|
;; ;;
|
||||||
;; tracert.asm - Trace network route for KolibriOS ;;
|
;; tracert.asm - Trace network route for KolibriOS ;;
|
||||||
@ -239,7 +239,7 @@ mainloop:
|
|||||||
test eax, eax
|
test eax, eax
|
||||||
jz fail2
|
jz fail2
|
||||||
|
|
||||||
DEBUGF 2, "Answer after %u\n", eax
|
DEBUGF 2, "Answer of %u bytes\n", eax
|
||||||
|
|
||||||
; IP header length
|
; IP header length
|
||||||
movzx esi, byte[buffer_ptr]
|
movzx esi, byte[buffer_ptr]
|
||||||
@ -263,6 +263,7 @@ mainloop:
|
|||||||
;; jne .receive
|
;; jne .receive
|
||||||
|
|
||||||
; What kind of response is it?
|
; 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
|
cmp [esi + ICMP_header.Type], ICMP_UNREACH_PORT
|
||||||
je .last
|
je .last
|
||||||
cmp [esi + ICMP_header.Type], ICMP_TIMXCEED
|
cmp [esi + ICMP_header.Type], ICMP_TIMXCEED
|
||||||
|
Loading…
Reference in New Issue
Block a user