On Wed, Aug 15, 2018 at 03:43:06PM +0200, Martijn van Duren wrote:
> When running vmd with a local interface it sends the nameservers twice, 
> which seems a bit redundant to me and always annoys me when editing
> resolv.conf manually inside the vm.
> Diff below removes one of the two instances.
> 
> OK?

Ok ccardenas@

> 
> martijn@
> 
> Index: dhcp.c
> ===================================================================
> RCS file: /cvs/src/usr.sbin/vmd/dhcp.c,v
> retrieving revision 1.4
> diff -u -p -r1.4 dhcp.c
> --- dhcp.c    5 Nov 2017 20:01:09 -0000       1.4
> +++ dhcp.c    15 Aug 2018 13:41:24 -0000
> @@ -189,11 +189,6 @@ dhcp_request(struct vionet_dev *dev, cha
>               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);
> 

Reply via email to