Searched refs:alldevs (Results 1 - 7 of 7) sorted by path

/freebsd-11-stable/contrib/libpcap/
H A Dpcap-new.c74 int pcap_findalldevs_ex(const char *source, struct pcap_rmtauth *auth, pcap_if_t **alldevs, char *errbuf) argument
86 (*alldevs) = NULL;
117 if (pcap_findalldevs(alldevs, errbuf) == -1)
120 if (*alldevs == NULL)
130 dev = *alldevs;
149 pcap_freealldevs(*alldevs);
167 pcap_freealldevs(*alldevs);
270 pcap_freealldevs(*alldevs);
284 *alldevs = dev;
299 pcap_freealldevs(*alldevs);
[all...]
H A Dpcap-rpcap.c2343 pcap_findalldevs_ex_remote(const char *source, struct pcap_rmtauth *auth, pcap_if_t **alldevs, char *errbuf) argument
2358 (*alldevs) = NULL;
2425 *alldevs = dev;
2617 pcap_freealldevs(*alldevs);
H A Dpcap-rpcap.h47 struct pcap_rmtauth *auth, pcap_if_t **alldevs, char *errbuf);
H A Dpcap.c1288 pcap_freealldevs(pcap_if_t *alldevs)
1293 for (curdev = alldevs; curdev != NULL; curdev = nextdev) {
1350 pcap_if_t *alldevs;
1371 if (pcap_findalldevs(&alldevs, errbuf) == -1)
1374 if (alldevs == NULL || (alldevs->flags & PCAP_IF_LOOPBACK)) {
1393 (void)pcap_strlcpy(device, alldevs->name, sizeof(device));
1397 pcap_freealldevs(alldevs);
/freebsd-11-stable/contrib/libpcap/pcap/
H A Dpcap.h884 struct pcap_rmtauth *auth, pcap_if_t **alldevs, char *errbuf);
/freebsd-11-stable/contrib/libpcap/rpcapd/
H A Ddaemon.c1334 pcap_if_t *alldevs = NULL; // pointer to the header of the interface chain local
1349 if (pcap_findalldevs(&alldevs, errmsgbuf) == -1)
1352 if (alldevs == NULL)
1368 for (d = alldevs; d != NULL; d = d->next)
1409 for (d = alldevs; d != NULL; d = d->next)
1506 pcap_freealldevs(alldevs);
1518 if (alldevs)
1519 pcap_freealldevs(alldevs);
/freebsd-11-stable/contrib/libpcap/testprogs/
H A Dfindalldevstest.c99 pcap_if_t *alldevs; local
114 if (pcap_findalldevs_ex(argv[1], NULL, &alldevs, errbuf) == -1)
129 if (pcap_findalldevs_ex(argv[1], &auth, &alldevs, errbuf) == -1)
139 if (pcap_findalldevs(&alldevs, errbuf) == -1)
145 for(d=alldevs;d;d=d->next)
151 if (alldevs != NULL)
153 if (pcap_lookupnet(alldevs->name, &net, &mask, errbuf) < 0)
164 pcap_freealldevs(alldevs);

Completed in 187 milliseconds