Wireshark 4.7.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 <wiretap/wtap.h>
17
18#define ERF_POPULATE_SUCCESS 1
19#define ERF_POPULATE_ALREADY_POPULATED 0
20#define ERF_POPULATE_FAILED -1
21
22#define ERF_MAX_INTERFACES 8
23
24/*
25 * Private data for ERF files and LINKTYPE_ERF packets in pcap and pcapng.
26 */
28 GHashTable* if_map;
29 GHashTable* anchor_map;
30 uint64_t implicit_host_id;
31 uint64_t capture_gentime;
32 uint64_t host_gentime;
33};
34
35#define MIN_RECORDS_FOR_ERF_CHECK 3
36#define RECORDS_FOR_ERF_CHECK 20
37#define FCS_BITS 32
38/*Configurable through ERF_HOST_ID environment variable */
39#define ERF_WS_DEFAULT_HOST_ID 0
40
49wtap_open_return_val erf_open(wtap *wth, int *err, char **err_info);
50
51#endif /* __W_ERF_H__ */
52
53/*
54 * Editor modelines - https://www.wireshark.org/tools/modelines.html
55 *
56 * Local variables:
57 * c-basic-offset: 8
58 * tab-width: 8
59 * indent-tabs-mode: t
60 * End:
61 *
62 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
63 * :indentSize=8:tabSize=8:noTabs=false:
64 */
wtap_open_return_val erf_open(wtap *wth, int *err, char **err_info)
Open an ERF file.
Definition erf.c:374
Definition erf.h:27
Definition wtap_module.h:58
wtap_open_return_val
For registering file types that we can open.
Definition wtap.h:1751