From 52f75a8646fd7032c9d6db8b0c19e17ad0e51dee Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Tue, 5 Mar 2013 10:52:13 +0000 Subject: [PATCH] Added missed and dumped TCP packet counters to netstat. git-svn-id: svn://kolibrios.org@3332 a494cfbc-eb01-0410-851d-a64ba20cac60 --- .../net/applications/netstat/netstat.asm | 36 ++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/kernel/branches/net/applications/netstat/netstat.asm b/kernel/branches/net/applications/netstat/netstat.asm index 61fda47749..945eae1073 100644 --- a/kernel/branches/net/applications/netstat/netstat.asm +++ b/kernel/branches/net/applications/netstat/netstat.asm @@ -165,10 +165,22 @@ redraw: .no_arp: mcall 4, 20 shl 16 + 75, 0x80000000, str_packets_tx + add ebx, 18 mov edx, str_packets_rx mcall + cmp [mode], 106 + jne end_of_draw + + add ebx, 18 + mov edx, str_missed + mcall + + add ebx, 18 + mov edx, str_dumped + mcall + end_of_draw: @@ -376,9 +388,21 @@ not_105: pop ebx push eax + inc bl + push ebx + mcall 76 + pop ebx + push eax + + inc bl + push ebx + mcall 76 + pop ebx + push eax + mov ebx, 0x000a0000 pop ecx - mov edx, 135 shl 16 + 75 + 18 + mov edx, 135 shl 16 + 75 + 18*3 mov esi, 0x40000000 mov edi, 0x00bcbcbc mcall 47 @@ -387,6 +411,14 @@ not_105: pop ecx mcall + sub edx, 18 + pop ecx + mcall + + sub edx, 18 + pop ecx + mcall + jmp mainloop not_106: @@ -557,6 +589,8 @@ str_gateway db 'Standard gateway:', 0 str_arp db 'ARP entrys:', 0 str_conflicts db 'ARP conflicts:', 0 str_unknown db 'unknown', 0 +str_missed db 'Packets missed:',0 +str_dumped db 'Packets dumped:',0 namebuf rb 64