Lines Matching refs:curdev
324 pcap_if_t *devlist = NULL,*curdev,*prevdev; in snf_findalldevs() local
345 curdev = (pcap_if_t *)malloc(sizeof(pcap_if_t)); in snf_findalldevs()
346 if (curdev == NULL) { in snf_findalldevs()
352 devlist = curdev; in snf_findalldevs()
354 prevdev->next = curdev; in snf_findalldevs()
358 curdev->next = NULL; in snf_findalldevs()
359 curdev->name = strdup(ifa->snf_ifa_name); in snf_findalldevs()
360 if (curdev->name == NULL) { in snf_findalldevs()
363 free(curdev); in snf_findalldevs()
368 curdev->description = strdup(desc); in snf_findalldevs()
369 if (curdev->description == NULL) { in snf_findalldevs()
372 free(curdev->name); in snf_findalldevs()
373 free(curdev); in snf_findalldevs()
376 curdev->addresses = NULL; in snf_findalldevs()
377 curdev->flags = 0; in snf_findalldevs()
383 free(curdev->description); in snf_findalldevs()
384 free(curdev->name); in snf_findalldevs()
385 free(curdev); in snf_findalldevs()
388 curdev->addresses = curaddr; in snf_findalldevs()
394 free(curdev->description); in snf_findalldevs()
395 free(curdev->name); in snf_findalldevs()
397 free(curdev); in snf_findalldevs()
406 prevdev = curdev; in snf_findalldevs()