Quiet initilization fo decpcap when output_json.

This commit is contained in:
2025-08-05 05:35:27 +02:00
parent 1d8d69bf06
commit 468b055918
5 changed files with 27 additions and 24 deletions

View File

@@ -39,7 +39,7 @@ int main(int argc, char **argv) {
char *errbuf = new char[DP_ERRBUF_SIZE];
dp_handle *newhandle = dp_open_offline(argv[1], errbuf);
dp_handle *newhandle = dp_open_offline(argv[1], errbuf, false);
dp_addcb(newhandle, dp_packet_tcp, process_tcp);
int ret = dp_dispatch(newhandle, -1, NULL, 0);
if (ret == -1) {