Section: Misc. Reference Manual Pages (3PCAP)
Updated: 3 January 2014
Return to Main Contents
pcap_lookupdev - find the default device on which to capture
[DEPRECATED] char *pcap_lookupdev(char *errbuf);
This interface is obsoleted by
To find a default device on which to capture, call
and, if the list it returns is not empty, use the first device in the
list. (If the list is empty, there are no devices on which capture is
returns a pointer to a string giving the name of a network device
suitable for use with
If there is an error,
is returned and
is filled in with an appropriate error message.
is assumed to be able to hold at least
pcap(3PCAP), pcap_create(3PCAP), pcap_activate(3PCAP),
The pointer returned by
points to a static buffer; subsequent calls to
in the same thread, or calls to
in another thread, may overwrite that buffer.
In WinPcap, this function may return a UTF-16 string rather than an
ASCII or UTF-8 string.
- SEE ALSO
This document was created by
using the manual pages.
Time: 20:33:45 GMT, October 11, 2017