Lines Matching defs:nai
112 struct addrinfo *nai = NULL;
143 nai = malloc(sizeof (*nai));
144 if (nai == NULL)
146 bzero(nai, sizeof (*nai));
148 nai->ai_flags = AI_CANONNAME;
149 nai->ai_family = sap->sa_family;
150 nai->ai_socktype = SOCK_STREAM;
151 nai->ai_canonname = ucname;
159 nai->ai_addrlen = sizeof (struct sockaddr_in);
160 nai->ai_addr = sap;
162 *res = nai;
168 if (nai != NULL)
169 free(nai);