Changeset 39768 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Jan 16, 2012 2:25:22 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/bootp.c
r39556 r39768 301 301 uint32_t addr = RT_H2N_U32(RT_N2H_U32(pData->special_addr.s_addr) | CTL_DNS); 302 302 FILL_BOOTP_EXT(q, RFC1533_DNS, 4, &addr); 303 goto skip_dns_servers; 304 } 305 306 if (!TAILQ_EMPTY(&pData->pDnsList)) 307 { 308 de = TAILQ_LAST(&pData->pDnsList, dns_list_head); 309 q_dns_header = q; 310 FILL_BOOTP_EXT(q, RFC1533_DNS, 4, &de->de_addr.s_addr); 311 } 312 313 TAILQ_FOREACH_REVERSE(de, &pData->pDnsList, dns_list_head, de_list) 314 { 315 if (TAILQ_LAST(&pData->pDnsList, dns_list_head) == de) 316 continue; /* first value with head we've ingected before */ 317 FILL_BOOTP_APP(q_dns_header, q, RFC1533_DNS, 4, &de->de_addr.s_addr); 318 } 319 320 skip_dns_servers: 303 } 304 else 305 { 306 if (!TAILQ_EMPTY(&pData->pDnsList)) 307 { 308 de = TAILQ_LAST(&pData->pDnsList, dns_list_head); 309 q_dns_header = q; 310 FILL_BOOTP_EXT(q, RFC1533_DNS, 4, &de->de_addr.s_addr); 311 } 312 313 TAILQ_FOREACH_REVERSE(de, &pData->pDnsList, dns_list_head, de_list) 314 { 315 if (TAILQ_LAST(&pData->pDnsList, dns_list_head) == de) 316 continue; /* first value with head we've ingected before */ 317 FILL_BOOTP_APP(q_dns_header, q, RFC1533_DNS, 4, &de->de_addr.s_addr); 318 } 319 } 321 320 if (pData->fPassDomain && !pData->fUseHostResolver) 322 321 {
Note:
See TracChangeset
for help on using the changeset viewer.