/src/wireshark/wiretap/erf.h
Line | Count | Source (jump to first uncovered line) |
1 | | /** @file |
2 | | * |
3 | | * Copyright (c) 2003 Endace Technology Ltd, Hamilton, New Zealand. |
4 | | * All rights reserved. |
5 | | * |
6 | | * This software and documentation has been developed by Endace Technology Ltd. |
7 | | * along with the DAG PCI network capture cards. For further information please |
8 | | * visit https://www.endace.com/. |
9 | | * |
10 | | * SPDX-License-Identifier: BSD-3-Clause |
11 | | */ |
12 | | |
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 | 0 | #define ERF_MAX_INTERFACES 8 |
25 | | |
26 | | /* |
27 | | * Private data for ERF files and LINKTYPE_ERF packets in pcap and pcapng. |
28 | | */ |
29 | | struct erf_private { |
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 | 0 | #define MIN_RECORDS_FOR_ERF_CHECK 3 |
38 | 0 | #define RECORDS_FOR_ERF_CHECK 20 |
39 | | #define FCS_BITS 32 |
40 | | /*Configurable through ERF_HOST_ID environment variable */ |
41 | 0 | #define ERF_WS_DEFAULT_HOST_ID 0 |
42 | | |
43 | | wtap_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 | | */ |