Lines Matching refs:dump_info

386 struct dump_info {  struct
703 struct dump_info dumpinfo; in main()
1788 struct dump_info *dump_info; in dump_packet_and_trunc() local
1794 dump_info = (struct dump_info *)user; in dump_packet_and_trunc()
1824 pcap_dump_close(dump_info->p); in dump_packet_and_trunc()
1830 compress_savefile(dump_info->CurrentFileName); in dump_packet_and_trunc()
1842 if (dump_info->CurrentFileName != NULL) in dump_packet_and_trunc()
1843 free(dump_info->CurrentFileName); in dump_packet_and_trunc()
1845 dump_info->CurrentFileName = (char *)malloc(PATH_MAX + 1); in dump_packet_and_trunc()
1846 if (dump_info->CurrentFileName == NULL) in dump_packet_and_trunc()
1854 MakeFilename(dump_info->CurrentFileName, dump_info->WFileName, 0, in dump_packet_and_trunc()
1857 MakeFilename(dump_info->CurrentFileName, dump_info->WFileName, 0, 0); in dump_packet_and_trunc()
1863 dump_info->p = pcap_dump_open(dump_info->pd, dump_info->CurrentFileName); in dump_packet_and_trunc()
1868 if (dump_info->p == NULL) in dump_packet_and_trunc()
1878 if (Cflag != 0 && pcap_dump_ftell(dump_info->p) > Cflag) { in dump_packet_and_trunc()
1882 pcap_dump_close(dump_info->p); in dump_packet_and_trunc()
1888 compress_savefile(dump_info->CurrentFileName); in dump_packet_and_trunc()
1895 if (dump_info->CurrentFileName != NULL) in dump_packet_and_trunc()
1896 free(dump_info->CurrentFileName); in dump_packet_and_trunc()
1897 dump_info->CurrentFileName = (char *)malloc(PATH_MAX + 1); in dump_packet_and_trunc()
1898 if (dump_info->CurrentFileName == NULL) in dump_packet_and_trunc()
1900 MakeFilename(dump_info->CurrentFileName, dump_info->WFileName, Cflag_count, WflagChars); in dump_packet_and_trunc()
1901 dump_info->p = pcap_dump_open(dump_info->pd, dump_info->CurrentFileName); in dump_packet_and_trunc()
1902 if (dump_info->p == NULL) in dump_packet_and_trunc()
1906 pcap_dump((u_char *)dump_info->p, h, sp); in dump_packet_and_trunc()
1909 pcap_dump_flush(dump_info->p); in dump_packet_and_trunc()