nextEtherent

fnpcap_etherent * nextEtherent(FILE * fp)

Returns the next entry from the ethers file.

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

fpFile pointer to the ethers file.

Returns

A pointer to a pcap_etherent structure, or null at EOF.