From ba4849dc547bd1326f9225c57d42d8140700c106 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Sun, 14 Feb 2016 22:22:59 +0000 Subject: [PATCH] DHCP protocol: seconds since boot is in big endian byte order. git-svn-id: svn://kolibrios.org@6228 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/network/zeroconf/zeroconf.asm | 1 + 1 file changed, 1 insertion(+) diff --git a/programs/network/zeroconf/zeroconf.asm b/programs/network/zeroconf/zeroconf.asm index f42602fe74..4558d5dbc0 100644 --- a/programs/network/zeroconf/zeroconf.asm +++ b/programs/network/zeroconf/zeroconf.asm @@ -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