| 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 */
27 struct erf_private {
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
41 wtap_open_return_val erf_open(wtap *wth, int *err, char **err_info);
42
43#endif /* __W_ERF_H__ */
44
45/*
46 * Editor modelines - https://www.wireshark.org/tools/modelines.html
47 *
48 * Local variables:
49 * c-basic-offset: 8
50 * tab-width: 8
51 * indent-tabs-mode: t
52 * End:
53 *
54 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
55 * :indentSize=8:tabSize=8:noTabs=false:
56 */
erf_private
Definition erf.h:27
wtap
Definition wtap_module.h:58
wtap.h
wtap_open_return_val
wtap_open_return_val
For registering file types that we can open.
Definition wtap.h:1751