capture: add capture thread function for offline pcap capture

This commit is contained in:
Kaian 2022-05-02 09:27:42 +02:00
parent 7ee20e58a8
commit 429b60be48
1 changed files with 3 additions and 0 deletions

View File

@ -201,6 +201,9 @@ capture_offline(const char *infile)
infile = "/dev/stdin";
}
// Set capture thread function
capinfo->capture_fn = capture_thread;
// Set capture input file
capinfo->infile = infile;
capinfo->ispcap = true;