diff options
author | Nathan Neulinger <nneul@umr.edu> | 1999-11-11 20:18:46 +0000 |
---|---|---|
committer | Nathan Neulinger <nneul@umr.edu> | 1999-11-11 20:18:46 +0000 |
commit | 119a787b888b040bf59ee591524d2558da88d853 (patch) | |
tree | a5cb5964f5d14080c88cb8874b4dabc45c6fdaca /packet-portmap.c | |
parent | 56b9fc48618f6dca51cd45d447ab6f1c2c4031fb (diff) |
Additions to bootparams, portmap, and ypserv dissectors
svn path=/trunk/; revision=1013
Diffstat (limited to 'packet-portmap.c')
-rw-r--r-- | packet-portmap.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/packet-portmap.c b/packet-portmap.c index fb00ef1fde..e6ffb4321d 100644 --- a/packet-portmap.c +++ b/packet-portmap.c @@ -1,7 +1,7 @@ /* packet-portmap.c * Routines for portmap dissection * - * $Id: packet-portmap.c,v 1.3 1999/11/10 22:43:53 nneul Exp $ + * $Id: packet-portmap.c,v 1.4 1999/11/11 20:18:46 nneul Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@unicom.net> @@ -69,6 +69,13 @@ int dissect_getport_call(const u_char *pd, int offset, frame_data *fd, int dissect_getport_reply(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) { + if ( tree ) + { + if ( !BYTES_ARE_IN_FRAME(offset, 4)) return offset; + + proto_tree_add_item(tree, hf_portmap_port, + offset, 4, pntohl(&pd[offset+0])); + } return offset; } |