Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
erf.h
Go to the documentation of this file.
1
13#ifndef __W_ERF_H__
14#define __W_ERF_H__
15
16#include <glib.h>
17#include <wiretap/wtap.h>
18#include "ws_symbol_export.h"
19
20#define ERF_POPULATE_SUCCESS 1
21#define ERF_POPULATE_ALREADY_POPULATED 0
22#define ERF_POPULATE_FAILED -1
23
24#define ERF_MAX_INTERFACES 8
25
26/*
27 * Private data for ERF files and LINKTYPE_ERF packets in pcap and pcapng.
28 */
30 GHashTable* if_map;
31 GHashTable* anchor_map;
32 uint64_t implicit_host_id;
33 uint64_t capture_gentime;
34 uint64_t host_gentime;
35};
36
37#define MIN_RECORDS_FOR_ERF_CHECK 3
38#define RECORDS_FOR_ERF_CHECK 20
39#define FCS_BITS 32
40/*Configurable through ERF_HOST_ID environment variable */
41#define ERF_WS_DEFAULT_HOST_ID 0
42
43wtap_open_return_val erf_open(wtap *wth, int *err, char **err_info);
44
45#endif /* __W_ERF_H__ */
46
47/*
48 * Editor modelines - https://www.wireshark.org/tools/modelines.html
49 *
50 * Local variables:
51 * c-basic-offset: 8
52 * tab-width: 8
53 * indent-tabs-mode: t
54 * End:
55 *
56 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
57 * :indentSize=8:tabSize=8:noTabs=false:
58 */
Definition erf.h:29
Definition wtap-int.h:37