unsigned int netbr[4];
getnetbyname(net)#if defined(sun)	register char *net;#else	register const char *net;#endif{	unsigned int netbr[4];	int anslen;	querybuf buf;	char qbuf[MAXDNAME];	struct netent *net_entry;	strcpy(&qbuf[0],net);	anslen = res_search(qbuf, C_IN, T_PTR, (u_char *)&buf, sizeof(buf));	if (anslen < 0) {#ifdef DEBUG		if (_res.options & RES_DEBUG)			printf("res_query failed\n");#endif		if (errno == ECONNREFUSED)			return (_getnetbyname(net));		return (_getnetbyname(net));	}	net_entry = getnetanswer(&buf, anslen, BYNAME);	if (net_entry)		return (net_entry);	return (_getnetbyname(net));}