Skip to content

Commit 27af781

Browse files
author
Ian Seyler
committed
Display N/A for MAC Address if no supported NIC is present
1 parent e1bf8ab commit 27af781

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/monitor.asm

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@ skip_ramdrive:
8787
call ui_output
8888
xor edx, edx
8989

90+
; Check address of interface 0 - if clear then no supported interfaces
91+
mov rcx, NET_STATUS
92+
call [b_system]
93+
cmp eax, 0
94+
jne dispmac
95+
mov rsi, namsg
96+
call ui_output
97+
jmp MACdone
98+
9099
dispmac:
91100
mov rcx, NET_STATUS
92101
call [b_system]

0 commit comments

Comments
 (0)