No need to send the same nameserver twice.
authormartijn <martijn@openbsd.org>
Fri, 17 Aug 2018 07:12:28 +0000 (07:12 +0000)
committermartijn <martijn@openbsd.org>
Fri, 17 Aug 2018 07:12:28 +0000 (07:12 +0000)
OK ccardenas@

usr.sbin/vmd/dhcp.c

index 5b1df2e..88cb62f 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: dhcp.c,v 1.4 2017/11/05 20:01:09 reyk Exp $   */
+/*     $OpenBSD: dhcp.c,v 1.5 2018/08/17 07:12:28 martijn Exp $        */
 
 /*
  * Copyright (c) 2017 Reyk Floeter <reyk@openbsd.org>
@@ -189,11 +189,6 @@ dhcp_request(struct vionet_dev *dev, char *buf, size_t buflen, char **obuf)
                o += sizeof(server_addr);
        }
 
-       resp.options[o++] = DHO_DOMAIN_NAME_SERVERS;
-       resp.options[o++] = sizeof(server_addr);
-       memcpy(&resp.options[o], &server_addr, sizeof(server_addr));
-       o += sizeof(server_addr);
-
        resp.options[o++] = DHO_SUBNET_MASK;
        resp.options[o++] = sizeof(mask);
        mask.s_addr = htonl(0xfffffffe);