diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2000-01-21 00:07:53 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2000-01-21 00:07:53 +0000 |
commit | 622e0ef550f766149688ad4bc9244ce024c85124 (patch) | |
tree | 134f0bf1017bee40f20a74ba116c7df8db8294b0 /packet-vines.c | |
parent | 8e7816815f16be28c4e7eeeec916cb45aff27f20 (diff) |
Applied the vines part of Joerg's vines patch.
svn path=/trunk/; revision=1515
Diffstat (limited to 'packet-vines.c')
-rw-r--r-- | packet-vines.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/packet-vines.c b/packet-vines.c index f5b3895ce4..5d293e430f 100644 --- a/packet-vines.c +++ b/packet-vines.c @@ -1,7 +1,7 @@ /* packet-vines.c * Routines for Banyan VINES protocol packet disassembly * - * $Id: packet-vines.c,v 1.10 1999/11/16 11:43:02 guy Exp $ + * $Id: packet-vines.c,v 1.11 2000/01/21 00:07:53 gram Exp $ * * Don Lafontaine <lafont02@cn.ca> * @@ -44,11 +44,18 @@ static gint ett_vines = -1; static gint ett_vines_frp = -1; static gint ett_vines_spp = -1; +void +capture_vines(const u_char *pd, int offset, guint32 cap_len, packet_counts *ld) +{ + ld->vines++; +} + + + /* AFAIK Vines FRP (Fragmentation Protocol) is used on all media except Ethernet * and TR (and probably FDDI) - Fragmentation on these media types is not possible * FIXME: Do we need to use this header with PPP too? */ - void dissect_vines_frp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) { guint8 vines_frp_ctrl, vines_frp_seqno; @@ -231,6 +238,9 @@ dissect_vines(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) case VIP_PROTO_SPP: dissect_vines_spp(pd, offset, fd, tree); break; + default: + dissect_data(pd, offset, fd, tree); + break; } } #define VINES_VSPP_DATA 1 @@ -314,6 +324,8 @@ void dissect_vines_spp(const u_char *pd, int offset, frame_data *fd, proto_tree proto_tree_add_text(vspp_tree, offset+12, 2, "Ack number: 0x%04x", viph.vspp_ack); proto_tree_add_text(vspp_tree, offset+14, 2, "Window: 0x%04x", viph.vspp_win); } + offset += 16; /* sizeof SPP */ + dissect_data(pd, offset, fd, tree); } void |