Give DDP packets their own ETT_ type, rather than using ETT_IP.

Call "dissect_data()" on the payload of a DDP packet.

svn path=/trunk/; revision=948
This commit is contained in:
Guy Harris 1999-10-29 05:25:59 +00:00
parent 5f6c1e26de
commit 62df24872c
2 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,7 @@
/* packet-atalk.c
* Routines for Appletalk packet disassembly (DDP, currently).
*
* $Id: packet-atalk.c,v 1.17 1999/10/22 08:18:26 guy Exp $
* $Id: packet-atalk.c,v 1.18 1999/10/29 05:25:58 guy Exp $
*
* Simon Wilkinson <sxw@dcs.ed.ac.uk>
*
@ -141,7 +141,7 @@ dissect_ddp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) {
if (tree) {
ti = proto_tree_add_item(tree, proto_ddp, offset, DDP_HEADER_SIZE, NULL);
ddp_tree = proto_item_add_subtree(ti, ETT_IP);
ddp_tree = proto_item_add_subtree(ti, ETT_DDP);
proto_tree_add_item(ddp_tree, hf_ddp_hopcount, offset, 1,
ddp_hops(ddp.hops_len));
proto_tree_add_item(ddp_tree, hf_ddp_len, offset, 2,
@ -158,6 +158,7 @@ dissect_ddp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) {
offset += DDP_HEADER_SIZE;
dissect_data(pd, offset, fd, tree);
}
void

View File

@ -1,7 +1,7 @@
/* packet.h
* Definitions for packet disassembly structures and routines
*
* $Id: packet.h,v 1.122 1999/10/29 01:04:18 guy Exp $
* $Id: packet.h,v 1.123 1999/10/29 05:25:59 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@ -436,6 +436,7 @@ enum {
ETT_STAT,
ETT_YPBIND,
ETT_YPSERV,
ETT_DDP,
NUM_TREE_TYPES /* last item number plus one */
};