Lines Matching defs:dump_info
391 struct dump_info {
773 struct dump_info dumpinfo;
1911 struct dump_info *dump_info;
1917 dump_info = (struct dump_info *)user;
1952 pcap_dump_close(dump_info->p);
1958 compress_savefile(dump_info->CurrentFileName);
1970 if (dump_info->CurrentFileName != NULL)
1971 free(dump_info->CurrentFileName);
1973 dump_info->CurrentFileName = (char *)malloc(PATH_MAX + 1);
1974 if (dump_info->CurrentFileName == NULL)
1982 MakeFilename(dump_info->CurrentFileName, dump_info->WFileName, 0,
1985 MakeFilename(dump_info->CurrentFileName, dump_info->WFileName, 0, 0);
1992 fd = openat(dump_info->dirfd,
1993 dump_info->CurrentFileName,
1997 dump_info->CurrentFileName);
2002 dump_info->CurrentFileName);
2004 dump_info->p = pcap_dump_fopen(dump_info->pd, fp);
2006 dump_info->p = pcap_dump_open(dump_info->pd, dump_info->CurrentFileName);
2012 if (dump_info->p == NULL)
2015 set_dumper_capsicum_rights(dump_info->p);
2025 if (Cflag != 0 && pcap_dump_ftell(dump_info->p) > Cflag) {
2034 pcap_dump_close(dump_info->p);
2040 compress_savefile(dump_info->CurrentFileName);
2047 if (dump_info->CurrentFileName != NULL)
2048 free(dump_info->CurrentFileName);
2049 dump_info->CurrentFileName = (char *)malloc(PATH_MAX + 1);
2050 if (dump_info->CurrentFileName == NULL)
2052 MakeFilename(dump_info->CurrentFileName, dump_info->WFileName, Cflag_count, WflagChars);
2054 fd = openat(dump_info->dirfd, dump_info->CurrentFileName,
2058 dump_info->CurrentFileName);
2063 dump_info->CurrentFileName);
2065 dump_info->p = pcap_dump_fopen(dump_info->pd, fp);
2067 dump_info->p = pcap_dump_open(dump_info->pd, dump_info->CurrentFileName);
2069 if (dump_info->p == NULL)
2072 set_dumper_capsicum_rights(dump_info->p);
2076 pcap_dump((u_char *)dump_info->p, h, sp);
2079 pcap_dump_flush(dump_info->p);