forked from KolibriOS/kolibrios
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:
parent
b8aec230ec
commit
cd411eab90
@ -767,6 +767,10 @@ draw_interfaces:
|
|||||||
mov ecx, eax
|
mov ecx, eax
|
||||||
dec al
|
dec al
|
||||||
mov [last_device], al
|
mov [last_device], al
|
||||||
|
cmp [device], al
|
||||||
|
jbe @f
|
||||||
|
mov [device], 0
|
||||||
|
@@:
|
||||||
|
|
||||||
xor ebx, ebx ; get device type
|
xor ebx, ebx ; get device type
|
||||||
.loop:
|
.loop:
|
||||||
@ -815,11 +819,11 @@ draw_interfaces:
|
|||||||
; DATA AREA
|
; DATA AREA
|
||||||
|
|
||||||
name db 'Network status', 0
|
name db 'Network status', 0
|
||||||
mode dw 101
|
mode dw 101 ; currently selected protocol
|
||||||
device db 0
|
device db 1 ; currently selected device
|
||||||
last_device db 0
|
last_device db ? ; last device available
|
||||||
device_type dd 0
|
device_type dd ?
|
||||||
last dd 0
|
last dd ?
|
||||||
modes db 'Physical IPv4 ARP ICMP UDP TCP', 0
|
modes db 'Physical IPv4 ARP ICMP UDP TCP', 0
|
||||||
|
|
||||||
str_packets_tx db 'Packets sent:', 0
|
str_packets_tx db 'Packets sent:', 0
|
||||||
|
Loading…
Reference in New Issue
Block a user