wireshark/epan/conv_id.h
Dario Lombardo 55c68ee69c epan: use SPDX indentifiers.
Skipping dissectors dir for now.

Change-Id: I717b66bfbc7cc81b83f8c2cbc011fcad643796aa
Reviewed-on: https://code.wireshark.org/review/25694
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-02-08 19:29:45 +00:00

35 lines
1.4 KiB
C

/* conv_id.h
* conv_id 2011 Robert Bullen
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __CONV_ID_H__
#define __CONV_ID_H__
/** conv_id_t is a type that can aid in conversation identification. When
* included in a "conversation key", whatever that may be, in addition to the
* typical { address, port, address, port } quadruple, it helps differentiate
* in case the quadruple is not sufficiently unique. For example, it is not
* uncommon to see a TCP quadruple reused these days, and employing a
* conv_id_t field ensures that each instance of a reused TCP conversation is
* tracked independently. Currently this type is used in both Wireshark's and
* tshark's conversation tables implementations (they are different, hence
* the need for a whole header file for this one silly type alias).
*
* The "protocol" or "statistic" code responsible for instantiating the
* "conversation key" is also responsible for assigning its conv_id_t, and
* therefore its interpretation is specific to its assignor. For example, the
* TCP conversations tables in Wireshark and tshark assign the value of
* tcp.stream. If a conv_id_t field is not used, it should be assigned the
* value CONV_ID_UNSET.
*/
typedef guint32 conv_id_t;
#define CONV_ID_UNSET G_MAXUINT32
#endif /* __CONV_ID_H__ */