diff options
author | nneul <nneul@f5534014-38df-0310-8fa8-9805f1628bb7> | 1999-11-11 16:20:25 +0000 |
---|---|---|
committer | nneul <nneul@f5534014-38df-0310-8fa8-9805f1628bb7> | 1999-11-11 16:20:25 +0000 |
commit | 53a046cca21a7eae9743ff3ad665785f9f2abdbe (patch) | |
tree | 7637eb730d1eefaa6ebe8fa760810c9419842c26 /packet-rpc.h | |
parent | 6c7d43d596edf7e9570d452fb422f9489b80714a (diff) |
Expanded bootparams dissector to handle decoding getfile calls and replies.
Added proto_registrar_get_name routine to proto.c to retrieve the name
of particular proto_tree field.
Added dissect_rpc_string_item to packet-rpc.c. This routine does the same
thing as dissect_rpc_string, except it takes a hfindex of a
proto_tree item instead of a name. It uses the p_r_get_name call
to get the name, and adds the actual string content as a hidden
field (so that the subtree highlights the entire data area - length,
data, and padding). There is only one call to dissect_rpc_string, so
I believe that this routine should replace it.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1011 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-rpc.h')
-rw-r--r-- | packet-rpc.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packet-rpc.h b/packet-rpc.h index 007da7c1fb..3cf1b175de 100644 --- a/packet-rpc.h +++ b/packet-rpc.h @@ -1,5 +1,5 @@ /* packet-rpc.h (c) 1999 Uwe Girlich */ -/* $Id: packet-rpc.h,v 1.2 1999/11/05 07:16:23 guy Exp $ */ +/* $Id: packet-rpc.h,v 1.3 1999/11/11 16:20:25 nneul Exp $ */ #ifndef __PACKET_RPC_H__ #define __PACKET_RPC_H__ @@ -96,6 +96,10 @@ extern void init_dissect_rpc(); extern void cleanup_dissect_rpc(); extern unsigned int roundup(unsigned int a); +extern int dissect_rpc_string(const u_char *pd, int offset, frame_data *fd, + proto_tree *tree, char* name); +extern int dissect_rpc_string_item(const u_char *pd, int offset, frame_data *fd, + proto_tree *tree, int hfindex); extern int dissect_rpc_uint32(const u_char *pd, int offset, frame_data *fd, proto_tree *tree, char* name, char* type); extern int dissect_rpc_uint64(const u_char *pd, int offset, frame_data *fd, |