Wireshark 4.7.0
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_terf_priv_create (void)
 Create a new erf_priv structure.
 
erf_terf_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_privPointer to ERF private data structure.
wthPointer to wtap structure.
pseudo_headerPointer to union wtap_pseudo_header containing ERF pseudo-header.
errPointer to integer for error code.
err_infoPointer 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_privPointer to the erf_t structure to be freed.
Returns
Always returns NULL.