2021-11-26 03:31:05 +00:00
|
|
|
/** @file
|
2001-12-18 19:09:08 +00:00
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Wireshark Protocol Analyzer Library
|
2001-12-18 19:09:08 +00:00
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Copyright (c) 2001 by Gerald Combs <gerald@wireshark.org>
|
2002-08-28 20:41:00 +00:00
|
|
|
*
|
2018-02-08 16:59:17 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
2001-12-18 19:09:08 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef EPAN_DISSECT_H
|
|
|
|
#define EPAN_DISSECT_H
|
|
|
|
|
2013-12-03 23:49:51 +00:00
|
|
|
#include "epan.h"
|
2001-12-18 19:09:08 +00:00
|
|
|
#include "tvbuff.h"
|
|
|
|
#include "proto.h"
|
|
|
|
#include "packet_info.h"
|
|
|
|
|
2021-03-16 09:36:10 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2001-12-18 19:09:08 +00:00
|
|
|
/* Dissection of a single byte array. Holds tvbuff info as
|
|
|
|
* well as proto_tree info. As long as the epan_dissect_t for a byte
|
|
|
|
* array is in existence, you must not free or move that byte array,
|
|
|
|
* as the structures that the epan_dissect_t contains might have pointers
|
|
|
|
* to addresses in your byte array.
|
|
|
|
*/
|
2013-12-03 22:26:07 +00:00
|
|
|
struct epan_dissect {
|
2013-07-21 18:38:03 +00:00
|
|
|
struct epan_session *session;
|
2001-12-18 19:09:08 +00:00
|
|
|
tvbuff_t *tvb;
|
|
|
|
proto_tree *tree;
|
|
|
|
packet_info pi;
|
|
|
|
};
|
|
|
|
|
2011-12-29 00:08:47 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
2001-12-18 19:09:08 +00:00
|
|
|
|
|
|
|
#endif /* EPAN_DISSECT_H */
|
2012-10-08 15:23:36 +00:00
|
|
|
|
|
|
|
/*
|
2019-07-26 18:43:17 +00:00
|
|
|
* Editor modelines - https://www.wireshark.org/tools/modelines.html
|
2012-10-08 15:23:36 +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:
|
|
|
|
*/
|