Lines Matching refs:s_hostent
91 HOSTENT_STORAGE struct hostent s_hostent;
108 s_hostent.h_name = (char*)name;
109 s_hostent.h_aliases = &s_aliases;
110 s_hostent.h_addrtype = AF_INET;
111 s_hostent.h_length = sizeof(ip_addr_t);
112 s_hostent.h_addr_list = (char**)&s_phostent_addr;
116 LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_name == %s\n", s_hostent.h_name));
117 LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_aliases == %p\n", s_hostent.h_aliases));
118 if (s_hostent.h_aliases != NULL) {
120 for ( idx=0; s_hostent.h_aliases[idx]; idx++) {
121 LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_aliases[%i]-> == %p\n", idx, s_hostent.h_aliases[idx]));
122 LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_aliases[%i]-> == %s\n", idx, s_hostent.h_aliases[idx]));
125 LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_addrtype == %d\n", s_hostent.h_addrtype));
126 LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_length == %d\n", s_hostent.h_length));
127 LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_addr_list == %p\n", s_hostent.h_addr_list));
128 if (s_hostent.h_addr_list != NULL) {
130 for ( idx=0; s_hostent.h_addr_list[idx]; idx++) {
131 LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_addr_list[%i] == %p\n", idx, s_hostent.h_addr_list[idx]));
132 LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_addr_list[%i]-> == %s\n", idx, ip_ntoa((ip_addr_t*)s_hostent.h_addr_list[idx])));
138 /* this function should return the "per-thread" hostent after copy from s_hostent */
139 return sys_thread_hostent(&s_hostent);
141 return &s_hostent;