[Samba] WINS resolver for glibc bugs

Samuel Leo samuel at bluepoint.com.cn
Wed Feb 20 00:19:05 GMT 2002


sometimes WINS resolver don't with gethostbyname2_r and getaddrinfo. add 
following function to nsswitch/wins.c solve this problem.

NSS_STATUS
_nss_wins_gethostbyname2_r(const char *name, int af, struct hostent *he,
                          char *buffer, size_t buflen, int *errnop,
                          int *h_errnop)
{
        if(af!=AF_INET){
                *h_errnop = NO_DATA;
                *errnop = EAFNOSUPPORT;
                return NSS_STATUS_UNAVAIL;
        }
        return _nss_wins_gethostbyname_r(name,he,buffer,buflen,errnop,h_errnop);
}

-------------- next part --------------
3j?Zr??????y??v?????


More information about the samba mailing list