mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-18 04:43:06 +03:00
DHCP protocol: seconds since boot is in big endian byte order.
git-svn-id: svn://kolibrios.org@6228 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
1486250609
commit
ba4849dc54
@ -358,6 +358,7 @@ build_dhcp_packet:
|
|||||||
xor edx, edx
|
xor edx, edx
|
||||||
mov ebx, 100
|
mov ebx, 100
|
||||||
div ebx ; Divide by 100 to get number of seconds
|
div ebx ; Divide by 100 to get number of seconds
|
||||||
|
xchg al, ah ; Convert to big endian
|
||||||
mov [tx_msg.secs], ax
|
mov [tx_msg.secs], ax
|
||||||
mov [tx_msg.flags], 0
|
mov [tx_msg.flags], 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user