From 69c414474fe0b46a7d60b53eecfc2097f630f961 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Sun, 14 Feb 2016 19:35:20 +0000 Subject: [PATCH] Broadcast does not need gateway. git-svn-id: svn://kolibrios.org@6220 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/network/IPv4.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/trunk/network/IPv4.inc b/kernel/trunk/network/IPv4.inc index 2433d7ac63..f17be4eeb6 100644 --- a/kernel/trunk/network/IPv4.inc +++ b/kernel/trunk/network/IPv4.inc @@ -939,6 +939,7 @@ ipv4_route: test ebx, ebx jnz .got_device +; Broadcast does not need gateway cmp eax, 0xffffffff je .broadcast @@ -976,6 +977,10 @@ ipv4_route: mov edx, [IP_LIST + edi] ; Source IP +; Broadcast does not need gateway + cmp eax, 0xffffffff + je @f + ; Check if we should route to gateway or not mov ebx, [IP_LIST + edi] and ebx, [SUBNET_LIST + edi]