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
|
||||
mov ebx, 100
|
||||
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.flags], 0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user