| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
Typedefs | Functions
erf-common.h File Reference

Go to the source code of this file.

## Typedefs
typedef struct erf_private | erf_t

## Functions
erf_t * | erf_priv_create (void)
| Create a new erf_priv structure.
erf_t * | erf_priv_free (erf_t *erf_priv)
| Frees an erf_t structure and its associated resources.
int | erf_populate_interface_from_header (erf_t *erf_priv, wtap *wth, union wtap_pseudo_header *pseudo_header, int *err, char **err_info)
| Populates interface information from ERF header.

## Detailed Description

Copyright (c) 2003 Endace Technology Ltd, Hamilton, New Zealand. All rights reserved.

This software and documentation has been developed by Endace Technology Ltd. along with the DAG PCI network capture cards. For further information please visit https://www.endace.com/.

SPDX-License-Identifier: BSD-3-Clause

## Function Documentation

## ◆ erf_populate_interface_from_header()

int erf_populate_interface_from_header | ( | erf_t * | erf_priv,
|  | wtap * | wth,
|  | union wtap_pseudo_header * | pseudo_header,
|  | int * | err,
|  | char ** | err_info )

Populates interface information from ERF header.

Parameters

  erf_priv | Pointer to ERF private data structure.
  wth | Pointer to wtap structure.
  pseudo_header | Pointer to union wtap_pseudo_header containing ERF pseudo-header.
  err | Pointer to integer for error code.
  err_info | Pointer to char pointer for error information.

Returns
  int -1 on failure, 0 on success.

## ◆ erf_priv_create()

erf_t * erf_priv_create | ( | void |  | ) |

Create a new erf_priv structure.

Returns
  Pointer to the newly created erf_priv structure, or NULL on failure.

## ◆ erf_priv_free()

erf_t * erf_priv_free | ( | erf_t * | erf_priv | ) |

Frees an erf_t structure and its associated resources.

Parameters

  erf_priv | Pointer to the erf_t structure to be freed.

Returns
  Always returns NULL.