diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-01-22 05:49:08 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-01-22 05:49:08 +0000 |
commit | edf4f334e8cc124bb7d1d12c2af15f51b5a7632c (patch) | |
tree | 69d34b82d53e62c60326b0d34a7d629b29f4db0b /packet-bootparams.c | |
parent | c65323938157e26f7d1163af133cb424dab7ff3a (diff) |
Give "dissect_rpc_string()" an extra "char **" argument; if it's
non-null, it returns through that argument a pointer to the displayed
version of the string, otherwise it just frees that string.
Use that to put, in the tree item for READDIR and READDIRPLUS reply
directory entry items, the file name from the directory entry.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1521 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-bootparams.c')
-rw-r--r-- | packet-bootparams.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/packet-bootparams.c b/packet-bootparams.c index dfec26e5ec..8d3d97a194 100644 --- a/packet-bootparams.c +++ b/packet-bootparams.c @@ -1,7 +1,7 @@ /* packet-bootparams.c * Routines for bootparams dissection * - * $Id: packet-bootparams.c,v 1.7 2000/01/07 22:05:30 guy Exp $ + * $Id: packet-bootparams.c,v 1.8 2000/01/22 05:49:07 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -90,8 +90,8 @@ int dissect_getfile_call(const u_char *pd, int offset, frame_data *fd, { if ( tree ) { - offset = dissect_rpc_string(pd,offset,fd,tree,hf_bootparams_host); - offset = dissect_rpc_string(pd,offset,fd,tree,hf_bootparams_fileid); + offset = dissect_rpc_string(pd,offset,fd,tree,hf_bootparams_host,NULL); + offset = dissect_rpc_string(pd,offset,fd,tree,hf_bootparams_fileid,NULL); } return offset; @@ -103,9 +103,9 @@ int dissect_getfile_reply(const u_char *pd, int offset, frame_data *fd, { if ( tree ) { - offset = dissect_rpc_string(pd,offset,fd,tree,hf_bootparams_host); + offset = dissect_rpc_string(pd,offset,fd,tree,hf_bootparams_host,NULL); offset = dissect_bp_address(pd,offset,fd,tree,hf_bootparams_hostaddr); - offset = dissect_rpc_string(pd,offset,fd,tree,hf_bootparams_filepath); + offset = dissect_rpc_string(pd,offset,fd,tree,hf_bootparams_filepath,NULL); } return offset; @@ -129,8 +129,8 @@ int dissect_whoami_reply(const u_char *pd, int offset, frame_data *fd, { if ( tree ) { - offset = dissect_rpc_string(pd,offset,fd,tree,hf_bootparams_host); - offset = dissect_rpc_string(pd,offset,fd,tree,hf_bootparams_domain); + offset = dissect_rpc_string(pd,offset,fd,tree,hf_bootparams_host,NULL); + offset = dissect_rpc_string(pd,offset,fd,tree,hf_bootparams_domain,NULL); offset = dissect_bp_address(pd,offset,fd,tree,hf_bootparams_routeraddr); } |