1999-10-20 16:41:20 +00:00
|
|
|
/* packet-rx.h
|
|
|
|
* Definitions for packet disassembly structures and routines
|
|
|
|
*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
1999-10-20 16:41:20 +00:00
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
1999-10-20 16:41:20 +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
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PACKET_RX_H
|
|
|
|
#define PACKET_RX_H
|
|
|
|
|
2001-08-04 04:04:35 +00:00
|
|
|
/*
|
|
|
|
* Private data passed from the RX dissector to the AFS dissector.
|
|
|
|
*/
|
|
|
|
struct rxinfo {
|
|
|
|
guint8 type;
|
|
|
|
guint8 flags;
|
|
|
|
guint16 serviceid;
|
2008-03-16 01:38:11 +00:00
|
|
|
guint32 epoch;
|
|
|
|
guint32 cid;
|
2001-08-04 04:04:35 +00:00
|
|
|
guint32 callnumber;
|
|
|
|
guint32 seq;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* RX protocol definitions.
|
|
|
|
*/
|
2001-08-20 02:11:13 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Packet types.
|
|
|
|
*/
|
1999-10-20 16:41:20 +00:00
|
|
|
#define RX_PACKET_TYPE_DATA 1
|
|
|
|
#define RX_PACKET_TYPE_ACK 2
|
|
|
|
#define RX_PACKET_TYPE_BUSY 3
|
|
|
|
#define RX_PACKET_TYPE_ABORT 4
|
|
|
|
#define RX_PACKET_TYPE_ACKALL 5
|
|
|
|
#define RX_PACKET_TYPE_CHALLENGE 6
|
|
|
|
#define RX_PACKET_TYPE_RESPONSE 7
|
|
|
|
#define RX_PACKET_TYPE_DEBUG 8
|
|
|
|
#define RX_PACKET_TYPE_PARAMS 9
|
|
|
|
#define RX_PACKET_TYPE_VERSION 13
|
2001-08-20 02:11:13 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Flag bits in the RX header.
|
|
|
|
*/
|
1999-10-20 16:41:20 +00:00
|
|
|
#define RX_CLIENT_INITIATED 1
|
|
|
|
#define RX_REQUEST_ACK 2
|
|
|
|
#define RX_LAST_PACKET 4
|
|
|
|
#define RX_MORE_PACKETS 8
|
|
|
|
#define RX_FREE_PACKET 16
|
2002-02-03 15:59:42 +00:00
|
|
|
#define RX_SLOW_START_OR_JUMBO 32
|
1999-10-20 16:41:20 +00:00
|
|
|
|
|
|
|
#define RX_ACK_TYPE_NACK 0
|
|
|
|
#define RX_ACK_TYPE_ACK 1
|
|
|
|
|
|
|
|
#define RX_ACK_REQUESTED 1
|
|
|
|
#define RX_ACK_DUPLICATE 2
|
|
|
|
#define RX_ACK_OUT_OF_SEQUENCE 3
|
|
|
|
#define RX_ACK_EXEEDS_WINDOW 4
|
|
|
|
#define RX_ACK_NOSPACE 5
|
|
|
|
#define RX_ACK_PING 6
|
|
|
|
#define RX_ACK_PING_RESPONSE 7
|
|
|
|
#define RX_ACK_DELAY 8
|
2002-02-05 21:02:36 +00:00
|
|
|
#define RX_ACK_IDLE 9
|
1999-10-20 16:41:20 +00:00
|
|
|
|
2001-05-27 01:48:25 +00:00
|
|
|
#define RX_MAXCALLS 4
|
|
|
|
|
1999-10-20 16:41:20 +00:00
|
|
|
#endif
|