Searched refs:newIf (Results 1 – 1 of 1) sorted by relevance
508 pcap_if_t *newIf = NULL; in TcCreatePcapIfFromPort() local510 newIf = (pcap_if_t*)malloc(sizeof(*newIf)); in TcCreatePcapIfFromPort()511 if (newIf == NULL) in TcCreatePcapIfFromPort()516 memset(newIf, 0, sizeof(*newIf)); in TcCreatePcapIfFromPort()521 newIf->name = (char*)malloc(strlen(name) + 1); in TcCreatePcapIfFromPort()522 if (newIf->name == NULL) in TcCreatePcapIfFromPort()524 free(newIf); in TcCreatePcapIfFromPort()528 newIf->description = (char*)malloc(strlen(description) + 1); in TcCreatePcapIfFromPort()529 if (newIf->description == NULL) in TcCreatePcapIfFromPort()531 free(newIf->name); in TcCreatePcapIfFromPort()[all …]