2021-11-30 02:59:23 +00:00
|
|
|
/** @file
|
2018-04-30 19:55:30 +00:00
|
|
|
*
|
|
|
|
* Copyright (c) 2003 Endace Technology Ltd, Hamilton, New Zealand.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This software and documentation has been developed by Endace Technology Ltd.
|
|
|
|
* along with the DAG PCI network capture cards. For further information please
|
2019-07-28 04:20:27 +00:00
|
|
|
* visit https://www.endace.com/.
|
2018-04-30 19:55:30 +00:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*/
|
2003-08-26 07:10:39 +00:00
|
|
|
|
|
|
|
#ifndef __W_ERF_H__
|
|
|
|
#define __W_ERF_H__
|
|
|
|
|
2011-06-04 21:20:57 +00:00
|
|
|
#include <glib.h>
|
|
|
|
#include <wiretap/wtap.h>
|
2013-02-28 19:35:59 +00:00
|
|
|
#include "ws_symbol_export.h"
|
2011-06-04 21:20:57 +00:00
|
|
|
|
2017-06-01 08:34:25 +00:00
|
|
|
#define ERF_POPULATE_SUCCESS 1
|
|
|
|
#define ERF_POPULATE_ALREADY_POPULATED 0
|
|
|
|
#define ERF_POPULATE_FAILED -1
|
|
|
|
|
|
|
|
#define ERF_MAX_INTERFACES 4
|
|
|
|
|
2020-05-02 04:02:00 +00:00
|
|
|
/*
|
|
|
|
* Private data for ERF files and LINKTYPE_ERF packets in pcap and pcapng.
|
|
|
|
*/
|
|
|
|
struct erf_private {
|
2016-03-11 03:44:16 +00:00
|
|
|
GHashTable* if_map;
|
2017-06-01 08:34:25 +00:00
|
|
|
GHashTable* anchor_map;
|
2016-03-11 03:44:16 +00:00
|
|
|
guint64 implicit_host_id;
|
2017-06-01 08:34:25 +00:00
|
|
|
guint64 capture_gentime;
|
|
|
|
guint64 host_gentime;
|
2020-05-02 04:02:00 +00:00
|
|
|
};
|
2016-03-11 03:44:16 +00:00
|
|
|
|
2007-10-08 11:41:21 +00:00
|
|
|
#define MIN_RECORDS_FOR_ERF_CHECK 3
|
|
|
|
#define RECORDS_FOR_ERF_CHECK 20
|
|
|
|
#define FCS_BITS 32
|
2017-06-01 08:34:25 +00:00
|
|
|
/*Configurable through ERF_HOST_ID environment variable */
|
|
|
|
#define ERF_WS_DEFAULT_HOST_ID 0
|
2007-02-18 11:32:54 +00:00
|
|
|
|
2014-10-10 01:04:16 +00:00
|
|
|
wtap_open_return_val erf_open(wtap *wth, int *err, gchar **err_info);
|
2003-08-26 07:10:39 +00:00
|
|
|
|
|
|
|
#endif /* __W_ERF_H__ */
|
2015-01-02 00:45:22 +00:00
|
|
|
|
|
|
|
/*
|
2019-07-26 18:43:17 +00:00
|
|
|
* Editor modelines - https://www.wireshark.org/tools/modelines.html
|
2015-01-02 00:45:22 +00:00
|
|
|
*
|
|
|
|
* Local variables:
|
|
|
|
* c-basic-offset: 8
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: t
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
* vi: set shiftwidth=8 tabstop=8 noexpandtab:
|
|
|
|
* :indentSize=8:tabSize=8:noTabs=false:
|
|
|
|
*/
|