Home
last modified time | relevance | path

Searched refs:devlist (Results 1 – 8 of 8) sorted by relevance

/external/libpcap/
Dfad-win32.c45 pcap_add_if_win32(pcap_if_t **devlist, char *name, const char *desc, in pcap_add_if_win32() argument
58 if (add_or_find_if(&curdev, devlist, name, 0, desc, errbuf) == -1) { in pcap_add_if_win32()
124 pcap_if_t *devlist = NULL; in pcap_findalldevs_interfaces() local
215 if (pcap_add_if_win32(&devlist, name, desc, errbuf) == -1) { in pcap_findalldevs_interfaces()
231 if (pcap_platform_finddevs(&devlist, errbuf) < 0) in pcap_findalldevs_interfaces()
239 if (devlist != NULL) { in pcap_findalldevs_interfaces()
240 pcap_freealldevs(devlist); in pcap_findalldevs_interfaces()
241 devlist = NULL; in pcap_findalldevs_interfaces()
245 *alldevsp = devlist; in pcap_findalldevs_interfaces()
Dfad-getad.c149 pcap_if_t *devlist = NULL; in pcap_findalldevs_interfaces() local
257 if (add_addr_to_iflist(&devlist, ifa->ifa_name, in pcap_findalldevs_interfaces()
272 if (devlist != NULL) { in pcap_findalldevs_interfaces()
273 pcap_freealldevs(devlist); in pcap_findalldevs_interfaces()
274 devlist = NULL; in pcap_findalldevs_interfaces()
278 *alldevsp = devlist; in pcap_findalldevs_interfaces()
Dfad-gifc.c137 pcap_if_t *devlist = NULL; in pcap_findalldevs_interfaces() local
393 if (add_addr_to_iflist(&devlist, ifrp->ifr_name, in pcap_findalldevs_interfaces()
409 if (devlist != NULL) { in pcap_findalldevs_interfaces()
410 pcap_freealldevs(devlist); in pcap_findalldevs_interfaces()
411 devlist = NULL; in pcap_findalldevs_interfaces()
415 *alldevsp = devlist; in pcap_findalldevs_interfaces()
Dfad-glifc.c80 pcap_if_t *devlist = NULL; in pcap_findalldevs_interfaces() local
343 if (add_addr_to_iflist(&devlist, ifrp->lifr_name, in pcap_findalldevs_interfaces()
361 if (devlist != NULL) { in pcap_findalldevs_interfaces()
362 pcap_freealldevs(devlist); in pcap_findalldevs_interfaces()
363 devlist = NULL; in pcap_findalldevs_interfaces()
367 *alldevsp = devlist; in pcap_findalldevs_interfaces()
Dpcap-dos.c536 pcap_if_t *devlist = NULL; in pcap_findalldevs() local
562 if (pcap_add_if(&devlist, dev->name, dev->flags, in pcap_findalldevs()
568 if (add_addr_to_iflist(&devlist,dev->name, dev->flags, addr, addr_size, in pcap_findalldevs()
577 if (devlist && ret < 0) in pcap_findalldevs()
579 pcap_freealldevs (devlist); in pcap_findalldevs()
580 devlist = NULL; in pcap_findalldevs()
583 if (!devlist) in pcap_findalldevs()
586 *alldevsp = devlist; in pcap_findalldevs()
Dpcap-snf.c327 pcap_if_t *devlist = NULL,*curdev,*prevdev; in snf_findalldevs() local
354 if (devlist == NULL) /* save first entry */ in snf_findalldevs()
355 devlist = curdev; in snf_findalldevs()
413 *devlistp = devlist; in snf_findalldevs()
Dinet.c775 pcap_add_if(pcap_if_t **devlist, const char *name, u_int flags, in pcap_add_if() argument
780 return (add_or_find_if(&curdev, devlist, name, flags, description, in pcap_add_if()
/external/libmtp/src/
Dlibusb-glue.c160 static mtpdevice_list_t *append_to_mtpdevice_list(mtpdevice_list_t *devlist, in append_to_mtpdevice_list() argument
175 if (devlist == NULL) { in append_to_mtpdevice_list()
178 mtpdevice_list_t *tmp = devlist; in append_to_mtpdevice_list()
184 return devlist; in append_to_mtpdevice_list()
194 static void free_mtpdevice_list(mtpdevice_list_t *devlist) in free_mtpdevice_list() argument
196 mtpdevice_list_t *tmplist = devlist; in free_mtpdevice_list()
198 if (devlist == NULL) in free_mtpdevice_list()
586 mtpdevice_list_t *devlist = NULL; in LIBMTP_Detect_Raw_Devices() local
593 ret = get_mtp_usb_device_list(&devlist); in LIBMTP_Detect_Raw_Devices()
605 dev = devlist; in LIBMTP_Detect_Raw_Devices()
[all …]