Searched refs:capture_file (Results 1 – 1 of 1) sorted by relevance
19 static FILE* capture_file; variable28 fclose(capture_file); in capture_atexit()85 capture_file = fopen(filepath, "wb"); in qemu_tcpdump_start()86 if (capture_file == NULL) in qemu_tcpdump_start()89 if (pcap_write_header(capture_file) < 0) in qemu_tcpdump_start()107 fclose(capture_file); in qemu_tcpdump_stop()108 capture_file = NULL; in qemu_tcpdump_stop()134 fwrite( &h, sizeof(h), 1, capture_file ); in qemu_tcpdump_packet()135 fwrite( base, 1, len2, capture_file ); in qemu_tcpdump_packet()