]> Zhao Yanbai Git Server - minix.git/commitdiff
Retrieve hostname from dhcp too
authorBen Gras <ben@minix3.org>
Tue, 6 Sep 2005 22:08:54 +0000 (22:08 +0000)
committerBen Gras <ben@minix3.org>
Tue, 6 Sep 2005 22:08:54 +0000 (22:08 +0000)
commands/dhcpd/dhcpd.c

index 19b0b2c47e113b69c223c75f93b87de8131e092b..b83d696c308455ef3d7796dcb6daac024e1fe0a8 100755 (executable)
@@ -862,7 +862,8 @@ int main(int argc, char **argv)
            if (np->renew <= now) {
                u8_t type;
                static u8_t taglist[] = {
-                   DHCP_TAG_NETMASK, DHCP_TAG_GATEWAY, DHCP_TAG_DNS
+                   DHCP_TAG_NETMASK, DHCP_TAG_GATEWAY, DHCP_TAG_DNS,
+                       DHCP_TAG_HOSTNAME
                };
                u8_t ethclid[1+DHCP_HLEN_ETH];