VirtualBox

Ignore:
Timestamp:
Mar 3, 2009 4:36:26 PM (16 years ago)
Author:
vboxsync
Message:

NAT: integrated dnsproxy
the initialization of 2 dns servers should be done to make it work (but before need some comment on xtracker)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/socket.c

    r17191 r17302  
    561561             * out much quicker (10 seconds  for now...)
    562562             */
     563#ifndef VBOX_WITH_SLIRP_DNS_PROXY
    563564            if (so->so_expire)
    564565            {
     
    568569                    so->so_expire = curtime + SO_EXPIRE;
    569570            }
     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
    570583
    571584#if 0
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette