From 2c13dbe1c398ac72f6ae03c7a62f575a4e045cf1 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Thu, 7 Mar 2013 10:47:59 +0000 Subject: [PATCH] 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 --- kernel/branches/net/applications/netstat/netstat.asm | 4 +++- kernel/branches/net/network/IPv4.inc | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/kernel/branches/net/applications/netstat/netstat.asm b/kernel/branches/net/applications/netstat/netstat.asm index 6e7543c950..6fe4a29c1a 100644 --- a/kernel/branches/net/applications/netstat/netstat.asm +++ b/kernel/branches/net/applications/netstat/netstat.asm @@ -30,7 +30,7 @@ include '..\macros.inc' include '..\network.inc' START: - mcall 40, EVM_REDRAW + EVM_BUTTON + mcall 40, EVM_REDRAW + EVM_BUTTON + EVM_STACK2 redraw: mcall 12, 1 @@ -441,6 +441,8 @@ mainloop: je redraw cmp eax, 3 je button + cmp eax, 11 + je redraw jmp draw_stats diff --git a/kernel/branches/net/network/IPv4.inc b/kernel/branches/net/network/IPv4.inc index 321162ab9b..ea80e5a2e0 100644 --- a/kernel/branches/net/network/IPv4.inc +++ b/kernel/branches/net/network/IPv4.inc @@ -976,6 +976,7 @@ IPv4_api: mov eax, ecx call ARP_output_request ; now send a gratuitous ARP + call NET_send_event xor eax, eax ret @@ -985,6 +986,7 @@ IPv4_api: .write_dns: mov [DNS_LIST + eax], ecx + call NET_send_event xor eax, eax ret @@ -1001,6 +1003,7 @@ IPv4_api: or ecx, ebx mov [BROADCAST_LIST + eax], ecx + call NET_send_event xor eax, eax ret @@ -1010,5 +1013,7 @@ IPv4_api: .write_gateway: mov [GATEWAY_LIST + eax], ecx + + call NET_send_event xor eax, eax ret \ No newline at end of file