Skip to content

Commit

Permalink
Give DDP packets their own ETT_ type, rather than using ETT_IP.
Browse files Browse the repository at this point in the history
Call "dissect_data()" on the payload of a DDP packet.

svn path=/trunk/; revision=948
  • Loading branch information
guyharris committed Oct 29, 1999
1 parent 5f6c1e2 commit 62df248
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packet-atalk.c
Original file line number Diff line number Diff line change
@@ -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>
*
Expand Down Expand Up @@ -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,
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion packet.h
Original file line number Diff line number Diff line change
@@ -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>
Expand Down Expand Up @@ -436,6 +436,7 @@ enum {
ETT_STAT,
ETT_YPBIND,
ETT_YPSERV,
ETT_DDP,
NUM_TREE_TYPES /* last item number plus one */
};

Expand Down

0 comments on commit 62df248

Please sign in to comment.