From 383811720784b706ad02007a8456e21f7761856d Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Sat, 2 Aug 2014 17:30:23 +0000 Subject: [PATCH] Netstat: display number of queued (incoming) TCP packets git-svn-id: svn://kolibrios.org@5016 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/network/netstat/netstat.asm | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/programs/network/netstat/netstat.asm b/programs/network/netstat/netstat.asm index 98decb1259..0ee8a558ad 100644 --- a/programs/network/netstat/netstat.asm +++ b/programs/network/netstat/netstat.asm @@ -250,6 +250,10 @@ redraw: mov edx, str_dumped mcall + add ebx, 18 + mov edx, str_queued + mcall + end_of_draw: mcall 12, 2 @@ -590,9 +594,15 @@ not_105: pop ebx push eax + inc bl + push ebx + mcall 76 + pop ebx + push eax + mov ebx, 0x000a0000 pop ecx - mov edx, 134 shl 16 + 35 + 18*3 + mov edx, 134 shl 16 + 35 + 18*4 mov esi, 0x40000000 mov edi, 0x00F3F3F3 mcall 47 @@ -609,6 +619,10 @@ not_105: pop ecx mcall + sub edx, 18 + pop ecx + mcall + jmp mainloop not_106: @@ -821,6 +835,7 @@ str_arp db 'ARP entrys:', 0 str_conflicts db 'ARP conflicts:', 0 str_missed db 'Packets missed:',0 str_dumped db 'Packets dumped:',0 +str_queued db 'Packets queued:',0 str_link db 'Link state:',0 str_down db 'down', 0