Home
last modified time | relevance | path

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

/freebsd/contrib/libpcap/
H A Dpcap-tc.c440 pcap_if_t *newIf = NULL; in TcCreatePcapIfFromPort() local
442 newIf = (pcap_if_t*)malloc(sizeof(*newIf)); in TcCreatePcapIfFromPort()
443 if (newIf == NULL) in TcCreatePcapIfFromPort()
448 memset(newIf, 0, sizeof(*newIf)); in TcCreatePcapIfFromPort()
453 newIf->name = (char*)malloc(strlen(name) + 1); in TcCreatePcapIfFromPort()
454 if (newIf->name == NULL) in TcCreatePcapIfFromPort()
456 free(newIf); in TcCreatePcapIfFromPort()
460 newIf->description = (char*)malloc(strlen(description) + 1); in TcCreatePcapIfFromPort()
461 if (newIf->description == NULL) in TcCreatePcapIfFromPort()
463 free(newIf->name); in TcCreatePcapIfFromPort()
[all …]