| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
Functions
netlog.h File Reference
`#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.

## Detailed Description

Wiretap Library Copyright (c) 2025 by Moshe Kaplan

SPDX-License-Identifier: GPL-2.0-or-later

## Function Documentation

## ◆ netlog_open()

wtap_open_return_val netlog_open | ( | wtap * | wth,
|  | int * | err,
|  | char ** | err_info )

Open a NetLog file for reading.

Parameters

  wth | Pointer to the wtap structure
  err | Error code if an error occurs
  err_info | Error information if an error occurs

Returns
  WTAP_OPEN_ERROR on failure, otherwise a value indicating success or not being the correct file type

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).