Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting
Replaces gethostbyname2 with getipnodebyname on Solaris *** src/libnet_resolve.c.OLD 2003-08-04 13:11:06.000000000 -0400 --- src/libnet_resolve.c 2003-08-04 13:16:45.000000000 -0400 *************** *** 218,224 **** --- 218,230 ---- if (use_name == LIBNET_RESOLVE) { + #if defined(HAVE_SOLARIS) + /* from Vic Abell (Usenet msgid=bbi2cq%24q31%241%40mozo.cc.purdue.edu) */ + int err; + if (!(host_ent = getipnodebyname(host_name, AF_INET6, 0, &err))) + #else if (!(host_ent = gethostbyname2(host_name, AF_INET6))) + #endif { snprintf(l->err_buf, LIBNET_ERRBUF_SIZE, "libnet_name2addr6(): %s", strerror(errno));

Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library