mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
Update.
2002-05-21 Jakub Jelinek <jakub@redhat.com> * 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.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user