| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
erf.h
Go to the documentation of this file.
1
12
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
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
49 wtap_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 */
erf_open
wtap_open_return_val erf_open(wtap *wth, int *err, char **err_info)
Open an ERF file.
Definition erf.c:375
erf_private
Private state maintained for ERF capture files and LINKTYPE_ERF packets in pcap/pcapng.
Definition erf.h:27
erf_private::if_map
GHashTable * if_map
Definition erf.h:28
erf_private::anchor_map
GHashTable * anchor_map
Definition erf.h:29
erf_private::capture_gentime
uint64_t capture_gentime
Definition erf.h:31
erf_private::host_gentime
uint64_t host_gentime
Definition erf.h:32
erf_private::implicit_host_id
uint64_t implicit_host_id
Definition erf.h:30
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:1852