Netstat: redraw window on network subsystem event.

Kernel: send event when IP configuration changed.

git-svn-id: svn://kolibrios.org@3348 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2013-03-07 10:47:59 +00:00
parent be4786e05f
commit 2c13dbe1c3
2 changed files with 8 additions and 1 deletions

View File

@ -30,7 +30,7 @@ include '..\macros.inc'
include '..\network.inc' include '..\network.inc'
START: START:
mcall 40, EVM_REDRAW + EVM_BUTTON mcall 40, EVM_REDRAW + EVM_BUTTON + EVM_STACK2
redraw: redraw:
mcall 12, 1 mcall 12, 1
@ -441,6 +441,8 @@ mainloop:
je redraw je redraw
cmp eax, 3 cmp eax, 3
je button je button
cmp eax, 11
je redraw
jmp draw_stats jmp draw_stats

View File

@ -976,6 +976,7 @@ IPv4_api:
mov eax, ecx mov eax, ecx
call ARP_output_request ; now send a gratuitous ARP call ARP_output_request ; now send a gratuitous ARP
call NET_send_event
xor eax, eax xor eax, eax
ret ret
@ -985,6 +986,7 @@ IPv4_api:
.write_dns: .write_dns:
mov [DNS_LIST + eax], ecx mov [DNS_LIST + eax], ecx
call NET_send_event
xor eax, eax xor eax, eax
ret ret
@ -1001,6 +1003,7 @@ IPv4_api:
or ecx, ebx or ecx, ebx
mov [BROADCAST_LIST + eax], ecx mov [BROADCAST_LIST + eax], ecx
call NET_send_event
xor eax, eax xor eax, eax
ret ret
@ -1010,5 +1013,7 @@ IPv4_api:
.write_gateway: .write_gateway:
mov [GATEWAY_LIST + eax], ecx mov [GATEWAY_LIST + eax], ecx
call NET_send_event
xor eax, eax xor eax, eax
ret ret