

PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE the notion of "connected" and "disconnected" don't apply to this interface for example, it doesn't apply to a loopback deviceĮach element of the list of addresses is of type pcap_addr_t, and has the following members:Īddr a pointer to a struct sockaddr containing an address PCAP_IF_CONNECTION_STATUS_DISCONNECTED the adapter is disconnected PCAP_IF_CONNECTION_STATUS_CONNECTED the adapter is connected PCAP_IF_CONNECTION_STATUS_UNKNOWN it's unknown whether the adapter is connected or not The possible values for the connection status bits are: PCAP_IF_CONNECTION_STATUS a bitmask for an indication of whether the adapter is connected or not for wireless interfaces, "connected" means "associated with a network"

PCAP_IF_WIRELESS set if the device is a wireless interface this includes IrDA as well as radio-based networks such as IEEE 802.15.4 and IEEE 802.11, so it doesn't just mean Wi-Fi PCAP_IF_RUNNING set if the device is running PCAP_IF_LOOPBACK set if the device is a loopback interface

Name a pointer to a string giving a name for the device to pass to pcap_open_live()ĭescription if not NULL, a pointer to a string giving a human-readable description of the deviceĪddresses a pointer to the first element of a list of network addresses for the device, or NULL if the device has no addresses Next if not NULL, a pointer to the next element in the list NULL for the last element of the list Each element of the list is of type pcap_if_t, and has the following members: (Note that there may be network devices that cannot be opened by the process calling pcap_findalldevs(), because, for example, that process does not have sufficient privileges to open them for capturing if so, those devices will not appear on the list.) If pcap_findalldevs() succeeds, the pointer pointed to by alldevsp is set to point to the first element of the list, or to NULL if no devices were found (this is considered success). Pcap_findalldevs() constructs a list of network devices that can be opened with pcap_create(3PCAP) and pcap_activate(3PCAP) or with pcap_open_live(3PCAP). Void pcap_freealldevs(pcap_if_t *alldevs) Int pcap_findalldevs(pcap_if_t **alldevsp, char *errbuf)
#NPCAP LOOPBACK ADAPTER FREE#
Pcap_findalldevs, pcap_freealldevs - get a list of capture devices, and free that list Synopsis
#NPCAP LOOPBACK ADAPTER DOWNLOAD#
Docs Download Licensing Windows 11 WinPcap Npcap Reference Guide Npcap API wpcap.dll (libpcap API) pcap_findalldevs - Npcap API
