1998-09-17 02:37:47 +00:00
|
|
|
/* packet-vines.h
|
|
|
|
* Definitions for packet disassembly structures and routines
|
|
|
|
*
|
2001-11-20 21:59:18 +00:00
|
|
|
* $Id: packet-vines.h,v 1.10 2001/11/20 21:59:13 guy Exp $
|
1998-09-17 02:37:47 +00:00
|
|
|
*
|
|
|
|
* Don Lafontaine <lafont02@cn.ca>
|
|
|
|
*
|
|
|
|
* Ethereal - Network traffic analyzer
|
2001-11-20 21:59:18 +00:00
|
|
|
* By Gerald Combs <gerald@ethereal.com>
|
1998-09-17 02:37:47 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
2001-04-17 00:46:06 +00:00
|
|
|
* Joerg Mayer <jmayer@loplof.de>
|
1998-09-17 02:37:47 +00:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
1998-12-29 04:05:38 +00:00
|
|
|
/* Information about VINES can be found in
|
|
|
|
*
|
|
|
|
* VINES Protocol Definition
|
|
|
|
* Order Number: DA254-00
|
|
|
|
* Banyan Systems incorporated
|
|
|
|
* February 1990
|
|
|
|
* Part Number: 092093-000
|
|
|
|
*/
|
1998-09-17 02:37:47 +00:00
|
|
|
|
|
|
|
#ifndef __PACKETVINES_H__
|
|
|
|
#define __PACKETVINES_H__
|
|
|
|
|
2001-04-01 06:32:10 +00:00
|
|
|
#include "to_str.h"
|
|
|
|
|
2000-08-25 18:46:11 +00:00
|
|
|
#define VINES_ADDR_LEN 6
|
2000-02-15 21:06:58 +00:00
|
|
|
|
1998-09-17 02:37:47 +00:00
|
|
|
/* VINES IP structs and definitions */
|
|
|
|
|
1998-12-29 04:05:38 +00:00
|
|
|
enum {
|
|
|
|
VIP_PROTO_IPC = 1, /* Interprocess Communications Protocol (IPC) */
|
|
|
|
VIP_PROTO_SPP = 2, /* Sequenced Packet Protcol (SPP) */
|
|
|
|
VIP_PROTO_ARP = 4, /* Address Resolution Protocol (ARP) */
|
|
|
|
VIP_PROTO_RTP = 5, /* Routing Update Protocol (RTP) / SRTP (Sequenced RTP) */
|
|
|
|
VIP_PROTO_ICP = 6 /* Internet Control Protocol (ICP) */
|
|
|
|
};
|
|
|
|
|
1998-09-17 02:37:47 +00:00
|
|
|
typedef struct _e_vip {
|
1998-12-29 04:05:38 +00:00
|
|
|
guint16 vip_chksum;
|
|
|
|
guint16 vip_pktlen;
|
|
|
|
guint8 vip_tctl; /* Transport Control */
|
|
|
|
guint8 vip_proto;
|
1998-09-17 02:37:47 +00:00
|
|
|
guint32 vip_dnet;
|
|
|
|
guint16 vip_dsub;
|
|
|
|
guint32 vip_snet;
|
|
|
|
guint16 vip_ssub;
|
|
|
|
} e_vip;
|
|
|
|
|
|
|
|
/* VINES SPP structs and definitions */
|
|
|
|
|
1998-12-29 04:05:38 +00:00
|
|
|
enum {
|
|
|
|
VSPP_PKTTYPE_DATA = 1, /* User Data */
|
|
|
|
VSPP_PKTTYPE_DISC = 3, /* Diconnect Request */
|
|
|
|
VSPP_PKTTYPE_PROBE = 4, /* Probe (retransmit) */
|
|
|
|
VSPP_PKTTYPE_ACK = 5 /* Acknowledgement */
|
|
|
|
};
|
|
|
|
|
1998-09-17 02:37:47 +00:00
|
|
|
typedef struct _e_vspp {
|
|
|
|
guint16 vspp_sport;
|
|
|
|
guint16 vspp_dport;
|
1998-12-29 04:05:38 +00:00
|
|
|
guint8 vspp_pkttype;
|
|
|
|
guint8 vspp_control;
|
|
|
|
guint16 vspp_lclid; /* Local Connection ID */
|
|
|
|
guint16 vspp_rmtid; /* Remote Connection ID */
|
|
|
|
guint16 vspp_seqno; /* Sequence Number */
|
|
|
|
guint16 vspp_ack; /* Acknowledgement Number */
|
1998-09-17 02:37:47 +00:00
|
|
|
guint16 vspp_win;
|
|
|
|
} e_vspp;
|
|
|
|
|
|
|
|
/* VINES SMB structs and definitions */
|
|
|
|
|
|
|
|
typedef struct _e_vsmb {
|
|
|
|
guint32 vsmb_tag;
|
|
|
|
guint8 vsmb_func;
|
|
|
|
guint8 vsmb_d1;
|
|
|
|
guint32 vsmb_d2;
|
|
|
|
guint32 vsmb_d3;
|
|
|
|
guint16 vsmb_d4;
|
|
|
|
guint32 vsmb_d5;
|
|
|
|
guint32 vsmb_d6;
|
|
|
|
guint16 vsmb_treeid;
|
|
|
|
guint16 vsmb_pid;
|
|
|
|
guint16 vsmb_uid;
|
|
|
|
guint16 vsmb_mid;
|
|
|
|
guint8 vsmb_wcnt;
|
|
|
|
guint16 vsmb_pbytes;
|
|
|
|
guint16 vsmb_dbytes;
|
|
|
|
guint16 vsmb_maxpbytes;
|
|
|
|
guint16 vsmb_maxdbytes;
|
|
|
|
guint16 vsmb_setupw;
|
|
|
|
guint16 vsmb_tflags;
|
|
|
|
guint32 vsmb_ttw;
|
|
|
|
} e_vsmb;
|
|
|
|
|
2001-11-20 21:59:18 +00:00
|
|
|
void capture_vines(const u_char *, int, int, packet_counts *);
|
2000-08-25 18:46:11 +00:00
|
|
|
|
1998-09-17 02:37:47 +00:00
|
|
|
#endif /* packet-vines.h */
|