Changeset 17302 in vbox
- Timestamp:
- Mar 3, 2009 4:36:26 PM (16 years ago)
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp.c
r17227 r17302 587 587 #endif 588 588 fNATfailed = 1; 589 #ifdef VBOX_WITH_SLIRP_DNS_PROXY 590 dnsproxy_init(pData); 591 #endif 589 592 590 593 getouraddr(pData); -
trunk/src/VBox/Devices/Network/slirp/slirp.h
r17191 r17302 272 272 #endif 273 273 274 #ifdef VBOX_WITH_SLIRP_DNS_PROXY 275 # include "dnsproxy/dnsproxy.h" 276 #endif 277 274 278 #define DEFAULT_BAUD 115200 275 279 -
trunk/src/VBox/Devices/Network/slirp/socket.c
r17191 r17302 561 561 * out much quicker (10 seconds for now...) 562 562 */ 563 #ifndef VBOX_WITH_SLIRP_DNS_PROXY 563 564 if (so->so_expire) 564 565 { … … 568 569 so->so_expire = curtime + SO_EXPIRE; 569 570 } 571 #else 572 if (so->so_expire) 573 { 574 if (so->so_fport != htons(53)) 575 so->so_expire = curtime + SO_EXPIRE; 576 } 577 /* 578 * last argument should be changed if Slirp will inject IP attributes 579 * Note: Here we can't check if dnsproxy's sent initial request 580 */ 581 dnsproxy_answer(pData, so, m, sizeof(struct ip)); 582 #endif 570 583 571 584 #if 0 -
trunk/src/VBox/Devices/Network/slirp/udp.c
r17191 r17302 228 228 so->so_faddr = ip->ip_dst; /* XXX */ 229 229 so->so_fport = uh->uh_dport; /* XXX */ 230 231 #ifdef VBOX_WITH_SLIRP_DNS_PROXY 232 if ( (ip->ip_dst.s_addr == htonl(ntohl(special_addr.s_addr) | CTL_DNS)) 233 && (ntohs(uh->uh_dport) == 53)) 234 { 235 dnsproxy_query(pData, so, m, iphlen); 236 goto bad; /* it isn't bad, probably better to add additional label done for boot/tftf :) */ 237 } 238 #endif 230 239 231 240 iphlen += sizeof(struct udphdr);
Note:
See TracChangeset
for help on using the changeset viewer.

