A lengthy patch to add the wiretap library. Wiretap is not used by default
[obnox/wireshark/wip.git] / packet-vines.h
1 /* packet-vines.h
2  * Definitions for packet disassembly structures and routines
3  *
4  * $Id: packet-vines.h,v 1.1 1998/09/17 02:37:46 gerald Exp $
5  *
6  * Don Lafontaine <lafont02@cn.ca>
7  *
8  * Ethereal - Network traffic analyzer
9  * By Gerald Combs <gerald@zing.org>
10  * Copyright 1998 Gerald Combs
11  *
12  * 
13  * This program is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU General Public License
15  * as published by the Free Software Foundation; either version 2
16  * of the License, or (at your option) any later version.
17  * 
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  * GNU General Public License for more details.
22  * 
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software
25  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
26  */
27
28
29 #ifndef __PACKETVINES_H__
30 #define __PACKETVINES_H__
31
32 /* VINES IP structs and definitions */
33
34 typedef struct _e_vip {
35   guint16 vip_sum;
36   guint16 vip_len;
37   guint8  vip_tos;
38   guint8  vip_proto;    /* 2 = VSPP */
39   guint32 vip_dnet;
40   guint16 vip_dsub;
41   guint32 vip_snet;
42   guint16 vip_ssub;
43
44 } e_vip;
45
46 /* VINES SPP structs and definitions */
47
48 typedef struct _e_vspp {
49   guint16 vspp_sport;
50   guint16 vspp_dport;
51   guint8  vspp_pkttype; /* 5=ack 1=data */
52   guint8  vspp_tos;  /* Unused with type 5 packets */
53   guint16 vspp_lclid;
54   guint16 vspp_rmtid;
55   guint16 vspp_seq; 
56   guint16 vspp_ack;
57   guint16 vspp_win;
58 } e_vspp;
59
60 /* VINES SMB structs and definitions */
61
62 typedef struct _e_vsmb {
63   guint32 vsmb_tag;
64   guint8  vsmb_func;
65   guint8  vsmb_d1;
66   guint32 vsmb_d2;
67   guint32 vsmb_d3;
68   guint16 vsmb_d4;
69   guint32 vsmb_d5;
70   guint32 vsmb_d6;
71   guint16 vsmb_treeid; 
72   guint16 vsmb_pid;
73   guint16 vsmb_uid;
74   guint16 vsmb_mid; 
75   guint8  vsmb_wcnt;
76   guint16 vsmb_pbytes;
77   guint16 vsmb_dbytes;
78   guint16 vsmb_maxpbytes;
79   guint16 vsmb_maxdbytes;
80   guint16 vsmb_setupw;
81   guint16 vsmb_tflags;
82   guint32 vsmb_ttw;
83 } e_vsmb;
84
85 #endif /* packet-vines.h */