netstat: show first network adapter by default, if available. (skip loopback)

git-svn-id: svn://kolibrios.org@5250 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2014-12-19 22:55:47 +00:00
parent b8aec230ec
commit cd411eab90

View File

@ -767,6 +767,10 @@ draw_interfaces:
mov ecx, eax
dec al
mov [last_device], al
cmp [device], al
jbe @f
mov [device], 0
@@:
xor ebx, ebx ; get device type
.loop:
@ -815,11 +819,11 @@ draw_interfaces:
; DATA AREA
name db 'Network status', 0
mode dw 101
device db 0
last_device db 0
device_type dd 0
last dd 0
mode dw 101 ; currently selected protocol
device db 1 ; currently selected device
last_device db ? ; last device available
device_type dd ?
last dd ?
modes db 'Physical IPv4 ARP ICMP UDP TCP', 0
str_packets_tx db 'Packets sent:', 0