From b64e1566263764ddc1173cfa3f94d0ef92ae2883 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 31 May 2002 07:54:02 +0000 Subject: Update. 2002-05-21 Jakub Jelinek * resolv/resolv.h (struct __res_state): Remove unused nstimes. Add nsmap. * resolv/res_init.c (__res_vinit): Initialize nsmap array. Remove nstimes setting. (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs. * resolv/res_send.c (res_nsend): Don't close unconditionally if there is mix of IPv6 and IPv4 nameservers. Use nsmap array to find free slots and preserve nameserver ordering. Fix RES_ROTATE. --- resolv/resolv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'resolv/resolv.h') diff --git a/resolv/resolv.h b/resolv/resolv.h index 238ea59..09bddb8 100644 --- a/resolv/resolv.h +++ b/resolv/resolv.h @@ -130,7 +130,7 @@ struct __res_state { char pad[52]; /* On an i386 this means 512b total. */ struct { u_int16_t nscount; - u_int16_t nstimes[MAXNS]; /* ms. */ + u_int16_t nsmap[MAXNS]; int nssocks[MAXNS]; u_int16_t nscount6; u_int16_t nsinit; -- cgit v1.1