Home
last modified time | relevance | path

Searched refs:curdev (Results 1 – 2 of 2) sorted by relevance

/external/libpcap/
Dinet.c134 pcap_if_t *curdev, *prevdev, *nextdev; in add_or_find_if() local
141 for (curdev = *alldevs; curdev != NULL; curdev = curdev->next) { in add_or_find_if()
142 if (strcmp(name, curdev->name) == 0) in add_or_find_if()
146 if (curdev == NULL) { in add_or_find_if()
215 curdev = malloc(sizeof(pcap_if_t)); in add_or_find_if()
216 if (curdev == NULL) { in add_or_find_if()
225 curdev->next = NULL; in add_or_find_if()
226 curdev->name = strdup(name); in add_or_find_if()
227 if (curdev->name == NULL) { in add_or_find_if()
230 free(curdev); in add_or_find_if()
[all …]
Dfad-win32.c54 add_addr_to_list(pcap_if_t *curdev, struct sockaddr *addr, in add_addr_to_list() argument
118 for (prevaddr = curdev->addresses; prevaddr != NULL; prevaddr = nextaddr) { in add_addr_to_list()
132 curdev->addresses = curaddr; in add_addr_to_list()
149 pcap_if_t *curdev; in pcap_add_if_win32() local
159 if (add_or_find_if(&curdev, devlist, name, 0, desc, errbuf) == -1) { in pcap_add_if_win32()
190 if(curdev == NULL) in pcap_add_if_win32()
192 res = add_addr_to_list(curdev, in pcap_add_if_win32()