nametoaddr

fnbpf_u_int32 * * nametoaddr(string name)

Resolves a host name to a list of IPv4 addresses.

Note

The returned pointer is owned by libpcap's internal state.

Callers must copy the data if it needs to survive across other libpcap calls.

Parameters

nameThe host name.

Returns

A null-terminated array of pointers to bpf_u_int32 addresses, or null on error.