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:
hidnplayr 2016-02-14 22:22:59 +00:00
parent 1486250609
commit ba4849dc54

View File

@ -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