Skip to content

Commit

Permalink
added a couple of ddp protocol names based on looking at packets in g…
Browse files Browse the repository at this point in the history
…enbroad.snoop, added placeholder routines for nbp and rtmp dissection

svn path=/trunk/; revision=1248
  • Loading branch information
Nathan Neulinger committed Dec 8, 1999
1 parent 4e06e96 commit be34b45
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 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.23 1999/12/06 18:33:49 gram Exp $
* $Id: packet-atalk.c,v 1.24 1999/12/08 23:21:08 nneul Exp $
*
* Simon Wilkinson <sxw@dcs.ed.ac.uk>
*
Expand Down Expand Up @@ -103,9 +103,29 @@ static const value_string op_vals[] = {
{DDP_RTMPREQ, "AppleTalk Routing Table request"},
{DDP_ZIP, "AppleTalk Zone Information Protocol packet"},
{DDP_ADSP, "AppleTalk Data Stream Protocol"},

/* these are all guesses based on the genbroad.snoop sample capture */
{0x74, "First Class"},
{0x32, "StarNine Key"},
{0x34, "StarNine Key"},
{0x61, "StarNine Key"},
{0x45, "Printer Queue"},
{0x43, "Calendar"},
{0, NULL}
};

static void
dissect_rtmp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) {
dissect_data(pd, offset, fd, tree);
return;
}

static void
dissect_nbp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) {
dissect_data(pd, offset, fd, tree);
return;
}

void
dissect_ddp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) {
e_ddp ddp;
Expand Down Expand Up @@ -159,7 +179,17 @@ dissect_ddp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) {

offset += DDP_HEADER_SIZE;

dissect_data(pd, offset, fd, tree);
switch ( ddp.type ) {
case DDP_NBP:
dissect_ddp(pd, offset, fd, tree);
break;
case DDP_RTMPREQ:
dissect_rtmp(pd, offset, fd, tree);
break;
default:
dissect_data(pd, offset, fd, tree);
break;
}
}

void
Expand Down

0 comments on commit be34b45

Please sign in to comment.