|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
#include "wtap.h"Go to the source code of this file.
Functions | |
| wtap_open_return_val | netlog_open (wtap *wth, int *err, char **err_info) |
| Open a NetLog file for reading. | |
Wiretap Library Copyright (c) 2025 by Moshe Kaplan
SPDX-License-Identifier: GPL-2.0-or-later
| wtap_open_return_val netlog_open | ( | wtap * | wth, |
| int * | err, | ||
| char ** | err_info | ||
| ) |
Open a NetLog file for reading.
| wth | Pointer to the wtap structure |
| err | Error code if an error occurs |
| err_info | Error information if an error occurs |
Called to determine if a file matches this handler. Returns WTAP_OPEN_MINE if the provided file is a NetLog file.
Note: Allocates memory for a netlog_state and stores it as wth->priv.
Parsing JSON is very slow. To avoid parsing the entire file multiple times, store the cached result.
< Precision: 1 millisecond (3 fractional digits).