From: martijn Date: Fri, 17 Aug 2018 07:12:28 +0000 (+0000) Subject: No need to send the same nameserver twice. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=982bb4f34aa42b9afd5999cb569220968139546f;p=openbsd No need to send the same nameserver twice. OK ccardenas@ --- 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 @@ -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);