| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
Classes | Macros | Functions
logcat.h File Reference
`#include "wtap.h"`

Go to the source code of this file.

## Classes
struct | logger_entry
struct | logger_entry_v2

## Macros
#define | LOGGER_ENTRY_MAX_PAYLOAD 4076

## Functions
wtap_open_return_val | logcat_open (wtap *wth, int *err, char **err_info)
| Opens a logcat capture file for reading.
int | logcat_exported_pdu_length (const uint8_t *pd)
| Calculate the length of a PDU (Protocol Data Unit) in a Logcat packet.

## Detailed Description

Copyright 2014, Michal Labedzki for Tieto Corporation

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

## Function Documentation

## ◆ logcat_exported_pdu_length()

int logcat_exported_pdu_length | ( | const uint8_t * | pd | ) |

Calculate the length of a PDU (Protocol Data Unit) in a Logcat packet.

This function calculates the total length of a PDU by iterating through the tags and their lengths.

Parameters

  pd | Pointer to the beginning of the PDU data.

Returns
  The calculated length of the PDU.

## ◆ logcat_open()

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

Opens a logcat capture file for reading.

This function initializes the wtap structure to read from a JSON log file.

Parameters

  wth | Pointer to the wtap structure that will be initialized.
  err | Pointer to an integer where error codes can be stored.
  err_info | Pointer to a string where error information can be stored.

Returns
  A value indicating the success or failure of the operation.