From e885b31ba82f247ae08d80704a45e36a007f7481 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Mon, 2 Sep 2019 20:45:28 +0000 Subject: [PATCH] Fix issue #122 git-svn-id: svn://kolibrios.org@7682 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/network/ARP.inc | 2 +- kernel/trunk/network/udp.inc | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/kernel/trunk/network/ARP.inc b/kernel/trunk/network/ARP.inc index 4fc415e533..a3aab973c2 100644 --- a/kernel/trunk/network/ARP.inc +++ b/kernel/trunk/network/ARP.inc @@ -439,7 +439,7 @@ arp_del_entry: ; TODO: use a mutex to lock ARP table - DEBUGF DEBUG_NETWORK_VERBOSE, "ARP_del_entry: entry=0x%x entrys=%u\n", esi, [ARP_entries_num + 4*edi] + DEBUGF DEBUG_NETWORK_VERBOSE, "ARP_del_entry: entry=0x%x entrys=%u\n", esi, [ARP_entries + 4*edi] DEBUGF DEBUG_NETWORK_VERBOSE, "ARP_del_entry: IP=%u.%u.%u.%u\n", \ [esi + ARP_entry.IP]:1, [esi + ARP_entry.IP + 1]:1, [esi + ARP_entry.IP + 2]:1, [esi + ARP_entry.IP + 3]:1 diff --git a/kernel/trunk/network/udp.inc b/kernel/trunk/network/udp.inc index 605ba966a6..8741e2d40d 100644 --- a/kernel/trunk/network/udp.inc +++ b/kernel/trunk/network/udp.inc @@ -5,7 +5,7 @@ ;; ;; ;; UDP.INC ;; ;; ;; -;; Part of the tcp/ip network stack for KolibriOS ;; +;; Part of the TCP/IP network stack for KolibriOS ;; ;; ;; ;; Written by hidnplayr@kolibrios.org ;; ;; ;; @@ -30,8 +30,8 @@ ends uglobal align 4 - UDP_packets_tx rd NET_DEVICES_MAX - UDP_packets_rx rd NET_DEVICES_MAX + UDP_packets_tx rd NET_DEVICES_MAX + UDP_packets_rx rd NET_DEVICES_MAX endg @@ -364,6 +364,12 @@ udp_connect: .enoroute: pop eax + + push eax + lea ecx, [eax + SOCKET.mutex] + call mutex_unlock + pop eax + popa xor eax, eax dec eax