On Wed, Aug 14, 2013 at 7:48 PM, Stefan Hajnoczi <[email protected]> wrote: > On Wed, Aug 14, 2013 at 11:02:51AM +0800, Liu Ping Fan wrote: >> @@ -47,6 +47,9 @@ static QTAILQ_HEAD(slirp_instances, Slirp) slirp_instances >> = >> static struct in_addr dns_addr; >> static u_int dns_addr_time; >> >> +#define TIMEOUT_FAST 2 >> +#define TIMEOUT_SLOW 499 > > #define TIMEOUT_FAST 2 /* milliseconds */ > > Actually I'm not sure what the units are but please document them, > either as a comment or call the macro itself TIMEOUT_FAST_MS.
Yes, its unit is milliseconds for g_poll(). Will document them. Thx, Pingfan
