2004-03-23 17:27:29 +00:00
|
|
|
/* packet-sctp.h
|
|
|
|
*
|
2005-03-20 18:59:39 +00:00
|
|
|
* Defintion of SCTP specific structures used by tap listeners.
|
2004-03-23 17:27:29 +00:00
|
|
|
*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
2004-03-23 17:27:29 +00:00
|
|
|
* Copyright 2004 Michael Tuexen <tuexen [AT] fh-muenster.de>
|
|
|
|
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2004-03-23 17:27:29 +00:00
|
|
|
* 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
|
2012-06-28 22:56:06 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2004-03-23 17:27:29 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __PACKET_SCTP_H__
|
|
|
|
#define __PACKET_SCTP_H__
|
|
|
|
|
|
|
|
#define MAXIMUM_NUMBER_OF_TVBS 2048
|
|
|
|
|
|
|
|
struct _sctp_info {
|
|
|
|
gboolean incomplete;
|
|
|
|
gboolean adler32_calculated;
|
|
|
|
gboolean adler32_correct;
|
|
|
|
gboolean crc32c_calculated;
|
|
|
|
gboolean crc32c_correct;
|
2005-02-04 22:39:48 +00:00
|
|
|
gboolean checksum_zero;
|
2005-05-02 20:45:22 +00:00
|
|
|
gboolean vtag_reflected;
|
2005-03-20 20:46:54 +00:00
|
|
|
guint16 sport;
|
|
|
|
guint16 dport;
|
2005-03-20 18:59:39 +00:00
|
|
|
address ip_src;
|
|
|
|
address ip_dst;
|
2004-03-23 17:27:29 +00:00
|
|
|
guint32 verification_tag;
|
2013-12-06 14:45:06 +00:00
|
|
|
guint16 assoc_index;
|
|
|
|
guint16 direction;
|
2004-03-23 17:27:29 +00:00
|
|
|
guint32 number_of_tvbs;
|
|
|
|
tvbuff_t *tvb[MAXIMUM_NUMBER_OF_TVBS];
|
|
|
|
};
|
|
|
|
|
2007-02-09 16:38:57 +00:00
|
|
|
typedef struct _sctp_fragment {
|
|
|
|
guint32 frame_num;
|
|
|
|
guint32 tsn;
|
|
|
|
guint32 len;
|
|
|
|
unsigned char *data;
|
2013-10-13 19:56:52 +00:00
|
|
|
struct _sctp_fragment *next;
|
2007-02-09 16:38:57 +00:00
|
|
|
} sctp_fragment;
|
|
|
|
|
|
|
|
typedef struct _sctp_frag_be {
|
|
|
|
sctp_fragment* fragment;
|
2013-10-13 19:56:52 +00:00
|
|
|
struct _sctp_frag_be *next;
|
2007-02-09 16:38:57 +00:00
|
|
|
} sctp_frag_be;
|
|
|
|
|
|
|
|
typedef struct _sctp_complete_msg {
|
|
|
|
guint32 begin;
|
|
|
|
guint32 end;
|
|
|
|
sctp_fragment* reassembled_in;
|
|
|
|
guint32 len;
|
|
|
|
unsigned char *data;
|
|
|
|
struct _sctp_complete_msg *next;
|
|
|
|
} sctp_complete_msg;
|
|
|
|
|
|
|
|
typedef struct _sctp_frag_msg {
|
|
|
|
sctp_frag_be* begins;
|
|
|
|
sctp_frag_be* ends;
|
|
|
|
sctp_fragment* fragments;
|
|
|
|
sctp_complete_msg* messages;
|
|
|
|
struct _sctp_frag_msg* next;
|
|
|
|
} sctp_frag_msg;
|
|
|
|
|
|
|
|
|
2004-03-23 17:27:29 +00:00
|
|
|
#endif
|