--- gvpe/src/vpn_dns.C 2011/03/06 21:01:37 1.52 +++ gvpe/src/vpn_dns.C 2011/10/18 10:54:17 1.53 @@ -72,7 +72,7 @@ #define MAX_WINDOW 1000 // max. for MAX_OUTSTANDING, and backlog #define MAX_BACKLOG (64*1024) // size of gvpe protocol backlog (bytes), must be > MAXSIZE -#define MAX_DOMAIN_SIZE 240 // 255 is legal limit, but bind doesn't compress well +#define MAX_DOMAIN_SIZE 235 // 255 is legal limit, but bind doesn't compress well // 240 leaves about 4 bytes of server reply data // every request byte less give room for two reply bytes @@ -592,6 +592,7 @@ { static u16 dns_id = 0; // TODO: should be per-vpn +#if 1 if (!dns_id) dns_id = time (0); @@ -603,6 +604,11 @@ ^ (dns_id >> 15)) & 1); return dns_id; +#else + dns_id++;//D + + return htons (dns_id); +#endif } struct dns_rcv;