Searched refs:curdev (Results 1 – 2 of 2) sorted by relevance
/external/libpcap/ |
D | inet.c | 134 pcap_if_t *curdev, *prevdev, *nextdev; in add_or_find_if() local 140 for (curdev = *alldevs; curdev != NULL; curdev = curdev->next) { in add_or_find_if() 141 if (strcmp(name, curdev->name) == 0) in add_or_find_if() 145 if (curdev == NULL) { in add_or_find_if() 214 curdev = malloc(sizeof(pcap_if_t)); in add_or_find_if() 215 if (curdev == NULL) { in add_or_find_if() 224 curdev->next = NULL; in add_or_find_if() 225 curdev->name = strdup(name); in add_or_find_if() 226 if (curdev->name == NULL) { in add_or_find_if() 229 free(curdev); in add_or_find_if() [all …]
|
D | fad-win32.c | 54 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()
|