From b4e2367e09ff163f903e7ff181676a162f76d110 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Mon, 15 Aug 2016 17:27:45 +0000 Subject: [PATCH] IPv4_route: bugfix in route determination. git-svn-id: svn://kolibrios.org@6475 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/network/IPv4.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kernel/trunk/network/IPv4.inc b/kernel/trunk/network/IPv4.inc index f17be4eeb6..5990eb724e 100644 --- a/kernel/trunk/network/IPv4.inc +++ b/kernel/trunk/network/IPv4.inc @@ -626,7 +626,7 @@ ipv4_find_fragment_slot: align 4 ipv4_output: - DEBUGF DEBUG_NETWORK_VERBOSE, "IPv4_output: size=%u ip=0x%x\n", ecx, eax + DEBUGF DEBUG_NETWORK_VERBOSE, "IPv4_output: size=%u ip=0x%x\n", ecx, edi cmp ecx, 65500 ; Max IPv4 packet size ja .too_large @@ -986,12 +986,15 @@ ipv4_route: and ebx, [SUBNET_LIST + edi] mov ecx, eax and ecx, [SUBNET_LIST + edi] + cmp ecx, ebx je @f mov eax, [GATEWAY_LIST + edi] @@: + DEBUGF DEBUG_NETWORK_VERBOSE, "IPv4_route: %u\n", edi ret .fail: + DEBUGF DEBUG_NETWORK_ERROR, "IPv4_route failed\n" xor eax, eax ret