Home
last modified time | relevance | path

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

/external/libpcap/
Dpcap-dag.c504 char * newDev = NULL; in dag_open_live() local
528 newDev = (char *)malloc(strlen(device) + 16); in dag_open_live()
529 if (newDev == NULL) { in dag_open_live()
535 if (dag_parse_name(device, newDev, strlen(device) + 16, &handle->md.dag_stream) < 0) { in dag_open_live()
539 device = newDev; in dag_open_live()
547 newDev = (char *)malloc(strlen(device) + 5); in dag_open_live()
548 if (newDev == NULL) { in dag_open_live()
552 strcpy(newDev, "/dev/"); in dag_open_live()
553 strcat(newDev, device); in dag_open_live()
554 device = newDev; in dag_open_live()
[all …]