ClientCollectors/ARODataCollector/external/libpcap-1.1.1/nametoaddr.c
bpf_u_int32
pcap_nametonetaddr(const char *name)
{
#ifndef WIN32
	struct netent *np;

	if ((np = getnetbyname(name)) != NULL)
		return np->n_net;
	else
		return 0;
#else
	/*
	 * There's no "getnetbyname()" on Windows.
	 */
	return 0;
#endif
}
/*
 *  Convert net name to internet address.
 *  Return 0 upon failure.
 */
Convert net name to internet address.
Return 0 upon failure.
Convert net name to internet address . Return 0 upon failure .
bpf_u_int32
pcap_nametonetaddr(const char *name)
{
#ifndef WIN32
	struct netent *np;
	if ((np = getnetbyname(name)) != NULL)
		return np->n_net;
	else
		return 0;
#else
	return 0;
#endif
}
bpf_u_int32 pcap_nametonetaddr ( const char * name ) { #ifndef WIN32 struct netent * np ; if ( ( np = getnetbyname ( name ) ) != NULL ) return np -> n_net ; else return 0 ; #else return 0 ; #endif }
Convert net name to internet address.
Convert net name to internet address .
/*
	 * There's no "getnetbyname()" on Windows.
	 */