Wireshark 4.7.0
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)
 

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 
)

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.