Skip to content

Commit

Permalink
[PROV-1192] Windows VMs not bringing up second nic properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Gulewich committed Sep 12, 2011
1 parent 602f73b commit e285c8e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions net/vnic-dhcp.c
Expand Up @@ -435,11 +435,13 @@ populate_dhcp_reply(const struct bootp_t *bp, struct bootp_t *rbp,
}

// dns server list
*q++ = RFC1533_DNS;
*q++ = 4 * vdsp->vnds_num_dns_addrs;
for (i = 0; i < vdsp->vnds_num_dns_addrs; i++) {
memcpy(q, &vdsp->vnds_dns_addrs[i], sizeof(struct in_addr));
q += 4;
if (vdsp->vnds_num_dns_addrs > 0) {
*q++ = RFC1533_DNS;
*q++ = 4 * vdsp->vnds_num_dns_addrs;
for (i = 0; i < vdsp->vnds_num_dns_addrs; i++) {
memcpy(q, &vdsp->vnds_dns_addrs[i], sizeof(struct in_addr));
q += 4;
}
}

// lease time
Expand Down

0 comments on commit e285c8e

Please sign in to comment.