nametoaddrinfo

fnaddrinfo * nametoaddrinfo(string name)

Resolves a host name to an addrinfo structure.

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 pointer to an addrinfo structure, or null on error.