Lines Matching +full:non +full:- +full:zero

121       LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_aliases[%i]->   == %p\n", idx, s_hostent.h_aliases[idx]));  in lwip_gethostbyname()
122 LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_aliases[%i]-> == %s\n", idx, s_hostent.h_aliases[idx])); in lwip_gethostbyname()
132 …LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_addr_list[%i]-> == %s\n", idx, ip_ntoa((ip_addr_t*)s_hostent.h_… in lwip_gethostbyname()
138 /* this function should return the "per-thread" hostent after copy from s_hostent */ in lwip_gethostbyname()
146 * Thread-safe variant of lwip_gethostbyname: instead of using a static
151 * @param ret pre-allocated struct where to store the result
152 * @param buf pre-allocated buffer where to store additional data
155 * and set to zero on error
158 * @return 0 on success, non-zero on error, additional error information
159 * is stored in *h_errnop instead of h_errno to be thread-safe
179 return -1; in lwip_gethostbyname_r()
186 return -1; in lwip_gethostbyname_r()
190 if (buflen < (sizeof(struct gethostbyname_r_helper) + namelen + 1 + (MEM_ALIGNMENT - 1))) { in lwip_gethostbyname_r()
193 return -1; in lwip_gethostbyname_r()
200 err = netconn_gethostbyname(name, &h->addr); in lwip_gethostbyname_r()
204 return -1; in lwip_gethostbyname_r()
212 h->addr_list[0] = &h->addr; in lwip_gethostbyname_r()
213 h->addr_list[1] = NULL; in lwip_gethostbyname_r()
214 h->aliases = NULL; in lwip_gethostbyname_r()
215 ret->h_name = hostname; in lwip_gethostbyname_r()
216 ret->h_aliases = &h->aliases; in lwip_gethostbyname_r()
217 ret->h_addrtype = AF_INET; in lwip_gethostbyname_r()
218 ret->h_length = sizeof(ip_addr_t); in lwip_gethostbyname_r()
219 ret->h_addr_list = (char**)&h->addr_list; in lwip_gethostbyname_r()
241 next = ai->ai_next; in lwip_freeaddrinfo()
260 * (may be NULL -> local address)
264 * @return 0 on success, non-zero on failure
309 LWIP_ASSERT("namelen is too long", (namelen + 1) <= (mem_size_t)-1); in lwip_getaddrinfo()
312 /* If this fails, please report to lwip-devel! :-) */ in lwip_getaddrinfo()
322 inet_addr_from_ipaddr(&sa->sin_addr, &addr); in lwip_getaddrinfo()
323 sa->sin_family = AF_INET; in lwip_getaddrinfo()
324 sa->sin_len = sizeof(struct sockaddr_in); in lwip_getaddrinfo()
325 sa->sin_port = htons((u16_t)port_nr); in lwip_getaddrinfo()
328 ai->ai_family = AF_INET; in lwip_getaddrinfo()
331 ai->ai_socktype = hints->ai_socktype; in lwip_getaddrinfo()
332 ai->ai_protocol = hints->ai_protocol; in lwip_getaddrinfo()
336 ai->ai_canonname = ((char*)ai + sizeof(struct addrinfo) + sizeof(struct sockaddr_in)); in lwip_getaddrinfo()
337 MEMCPY(ai->ai_canonname, nodename, namelen); in lwip_getaddrinfo()
338 ai->ai_canonname[namelen] = 0; in lwip_getaddrinfo()
340 ai->ai_addrlen = sizeof(struct sockaddr_in); in lwip_getaddrinfo()
341 ai->ai_addr = (struct sockaddr*)sa; in lwip_getaddrinfo()