Broadcast does not need gateway.
git-svn-id: svn://kolibrios.org@6220 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
a76e01a34d
commit
69c414474f
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user