summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMartijn van Duren <martijn@cvs.openbsd.org>2018-08-17 07:12:29 +0000
committerMartijn van Duren <martijn@cvs.openbsd.org>2018-08-17 07:12:29 +0000
commit303aedac353dfb29a8f6649a6bd338e032eba65b (patch)
tree0c120fc2703bccf62bc89443f014e55d7dde4ac7 /usr.sbin
parent62270944ebdd2a3d83c63fdbf10a4a3024d7e135 (diff)
No need to send the same nameserver twice.
OK ccardenas@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/vmd/dhcp.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.sbin/vmd/dhcp.c b/usr.sbin/vmd/dhcp.c
index 5b1df2e6bc2..88cb62f4ab5 100644
--- a/usr.sbin/vmd/dhcp.c
+++ b/usr.sbin/vmd/dhcp.c
@@ -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);