Changeset 59159 in vbox for trunk/src/VBox/Devices/Network/slirp
- Timestamp:
- Dec 16, 2015 4:23:53 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/hostres.c
r59157 r59159 399 399 400 400 if ( qtype != Type_A 401 && qtype != Type_CNAME 401 402 && qtype != Type_ANY) 402 403 { … … 441 442 #endif 442 443 444 /* 445 * Emit CNAME record if canonical name differs from the qname. 446 */ 443 447 if ( h->h_name != NULL 444 448 && RTStrICmp(h->h_name, name) != 0) … … 462 466 } 463 467 } 468 469 /* 470 * rfc1034#section-3.6.2 - ... a type CNAME or * query should 471 * return just the CNAME. 472 */ 473 if (qtype == Type_CNAME || qtype == Type_ANY) 474 goto out; 475 } 476 else if (qtype == Type_CNAME) 477 { 478 LogErr(("NAT: hostres: %s is already canonical\n", name)); 479 goto out; /* NB: RCode_NoError without an answer, not RCode_NXDomain */ 464 480 } 465 481 466 482 /* 467 * XXX: TODO: rfc1034#section-3.6.2 468 * 469 * If the query is Type_ANY and the name is CNAME, we should only 470 * return the CNAME, but not the A RRs. 483 * Emit A records. 471 484 */ 472 485 for (i = 0; h->h_addr_list[i] != NULL; ++i)
Note:
See TracChangeset
for help on using the changeset viewer.