Home
last modified time | relevance | path

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

/external/libpcap/
Dfad-getad.c150 pcap_if_t *devlist = NULL; in pcap_findalldevs_interfaces() local
268 if (add_addr_to_iflist(&devlist, ifa->ifa_name, in pcap_findalldevs_interfaces()
284 if (devlist != NULL) { in pcap_findalldevs_interfaces()
285 pcap_freealldevs(devlist); in pcap_findalldevs_interfaces()
286 devlist = NULL; in pcap_findalldevs_interfaces()
290 *alldevsp = devlist; in pcap_findalldevs_interfaces()
Dfad-gifc.c138 pcap_if_t *devlist = NULL; in pcap_findalldevs_interfaces() local
404 if (add_addr_to_iflist(&devlist, ifrp->ifr_name, in pcap_findalldevs_interfaces()
420 if (devlist != NULL) { in pcap_findalldevs_interfaces()
421 pcap_freealldevs(devlist); in pcap_findalldevs_interfaces()
422 devlist = NULL; in pcap_findalldevs_interfaces()
426 *alldevsp = devlist; in pcap_findalldevs_interfaces()
Dfad-glifc.c81 pcap_if_t *devlist = NULL; in pcap_findalldevs_interfaces() local
332 if (add_addr_to_iflist(&devlist, ifrp->lifr_name, in pcap_findalldevs_interfaces()
351 if (devlist != NULL) { in pcap_findalldevs_interfaces()
352 pcap_freealldevs(devlist); in pcap_findalldevs_interfaces()
353 devlist = NULL; in pcap_findalldevs_interfaces()
357 *alldevsp = devlist; in pcap_findalldevs_interfaces()
Dpcap-dos.c550 pcap_if_t *devlist = NULL; in pcap_platform_finddevs() local
576 if (pcap_add_if(&devlist, dev->name, dev->flags, in pcap_platform_finddevs()
583 if (add_addr_to_iflist(&devlist, dev->name, dev->flags, addr, addr_size, in pcap_platform_finddevs()
593 if (devlist && ret < 0) in pcap_platform_finddevs()
595 pcap_freealldevs (devlist); in pcap_platform_finddevs()
596 devlist = NULL; in pcap_platform_finddevs()
599 if (!devlist) in pcap_platform_finddevs()
602 *alldevsp = devlist; in pcap_platform_finddevs()
Dpcap-win32.c1349 pcap_add_if_win32(pcap_if_t **devlist, char *name, bpf_u_int32 flags, in pcap_add_if_win32() argument
1362 if (add_or_find_if(&curdev, devlist, name, flags, description, in pcap_add_if_win32()
1420 pcap_if_t *devlist = NULL; in pcap_platform_finddevs() local
1523 if (pcap_add_if_win32(&devlist, name, flags, desc, in pcap_platform_finddevs()
1539 if (devlist != NULL) { in pcap_platform_finddevs()
1540 pcap_freealldevs(devlist); in pcap_platform_finddevs()
1541 devlist = NULL; in pcap_platform_finddevs()
1545 *alldevsp = devlist; in pcap_platform_finddevs()
Dpcap-snf.c324 pcap_if_t *devlist = NULL,*curdev,*prevdev; in snf_findalldevs() local
351 if (devlist == NULL) /* save first entry */ in snf_findalldevs()
352 devlist = curdev; in snf_findalldevs()
410 *devlistp = devlist; in snf_findalldevs()
Dfad-helpers.c830 pcap_add_if(pcap_if_t **devlist, const char *name, u_int flags, in pcap_add_if() argument
835 return (add_or_find_if(&curdev, devlist, name, flags, description, in pcap_add_if()
/external/tcpdump/
Dtcpdump.c431 pcap_if_t *dev, *devlist; in show_devices_and_exit() local
435 if (pcap_findalldevs(&devlist, ebuf) < 0) in show_devices_and_exit()
437 for (i = 0, dev = devlist; dev != NULL; i++, dev = dev->next) { in show_devices_and_exit()
445 pcap_freealldevs(devlist); in show_devices_and_exit()
933 pcap_if_t *dev, *devlist; in find_interface_by_number() local
938 if (pcap_findalldevs(&devlist, ebuf) < 0) in find_interface_by_number()
943 for (i = 0, dev = devlist; i < devnum-1 && dev != NULL; in find_interface_by_number()
949 pcap_freealldevs(devlist); in find_interface_by_number()
1127 pcap_if_t *devlist; in main() local
1660 if (pcap_findalldevs(&devlist, ebuf) >= 0 && in main()
[all …]
/external/libmtp/src/
Dlibusb-glue.c177 static mtpdevice_list_t *append_to_mtpdevice_list(mtpdevice_list_t *devlist, in append_to_mtpdevice_list() argument
192 if (devlist == NULL) { in append_to_mtpdevice_list()
195 mtpdevice_list_t *tmp = devlist; in append_to_mtpdevice_list()
201 return devlist; in append_to_mtpdevice_list()
211 static void free_mtpdevice_list(mtpdevice_list_t *devlist) in free_mtpdevice_list() argument
213 mtpdevice_list_t *tmplist = devlist; in free_mtpdevice_list()
215 if (devlist == NULL) in free_mtpdevice_list()
611 mtpdevice_list_t *devlist = NULL; in LIBMTP_Detect_Raw_Devices() local
618 ret = get_mtp_usb_device_list(&devlist); in LIBMTP_Detect_Raw_Devices()
630 dev = devlist; in LIBMTP_Detect_Raw_Devices()
[all …]
Dlibopenusb1-glue.c150 static mtpdevice_list_t *append_to_mtpdevice_list(mtpdevice_list_t *devlist, in append_to_mtpdevice_list() argument
165 if (devlist == NULL) { in append_to_mtpdevice_list()
168 mtpdevice_list_t *tmp = devlist; in append_to_mtpdevice_list()
174 return devlist; in append_to_mtpdevice_list()
184 static void free_mtpdevice_list(mtpdevice_list_t *devlist) { in free_mtpdevice_list() argument
185 mtpdevice_list_t *tmplist = devlist; in free_mtpdevice_list()
187 if (devlist == NULL) in free_mtpdevice_list()
594 mtpdevice_list_t *devlist = NULL; in LIBMTP_Detect_Raw_Devices() local
601 ret = get_mtp_usb_device_list(&devlist); in LIBMTP_Detect_Raw_Devices()
613 dev = devlist; in LIBMTP_Detect_Raw_Devices()
[all …]
Dlibusb1-glue.c174 static mtpdevice_list_t *append_to_mtpdevice_list(mtpdevice_list_t *devlist, in append_to_mtpdevice_list() argument
189 if (devlist == NULL) { in append_to_mtpdevice_list()
192 mtpdevice_list_t *tmp = devlist; in append_to_mtpdevice_list()
198 return devlist; in append_to_mtpdevice_list()
208 static void free_mtpdevice_list(mtpdevice_list_t *devlist) in free_mtpdevice_list() argument
210 mtpdevice_list_t *tmplist = devlist; in free_mtpdevice_list()
212 if (devlist == NULL) in free_mtpdevice_list()
630 mtpdevice_list_t *devlist = NULL; in LIBMTP_Detect_Raw_Devices() local
637 ret = get_mtp_usb_device_list(&devlist); in LIBMTP_Detect_Raw_Devices()
649 dev = devlist; in LIBMTP_Detect_Raw_Devices()
[all …]