diff options
author | Anders Broman <anders.broman@ericsson.com> | 2012-05-23 07:13:43 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2012-05-23 07:13:43 +0000 |
commit | 33794c58a003413e1e6e7f21f0edc3c2d6eeed7b (patch) | |
tree | 49e98bbdb6ffe44967967ee307899e1570986ed7 | |
parent | 27596da91617d57b68827d94b9b05fd553bd7aa9 (diff) | |
download | wireshark-33794c58a003413e1e6e7f21f0edc3c2d6eeed7b.tar.gz |
Add file missing from http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=42806
svn path=/trunk/; revision=42809
-rw-r--r-- | epan/conv_id.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/epan/conv_id.h b/epan/conv_id.h new file mode 100644 index 0000000000..c9fe2e7379 --- /dev/null +++ b/epan/conv_id.h @@ -0,0 +1,48 @@ +/* conv_id.h + * conv_id 2011 Robert Bullen + * + * $Id$ + * + * Wireshark - Network traffic analyzer + * By Gerald Combs <gerald@wireshark.org> + * Copyright 1998 Gerald Combs + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#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__ */ |