diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-01-22 05:49:08 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-01-22 05:49:08 +0000 |
commit | 167999e61e4cae6350754f99ecb21f9671b5278b (patch) | |
tree | 69d34b82d53e62c60326b0d34a7d629b29f4db0b /packet-portmap.c | |
parent | 0b41709f86e069cb8b94a9fadec050eb6a0514dd (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.
svn path=/trunk/; revision=1521
Diffstat (limited to 'packet-portmap.c')
-rw-r--r-- | packet-portmap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packet-portmap.c b/packet-portmap.c index 0a30a988c0..60698d1b17 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.11 2000/01/07 22:05:35 guy Exp $ + * $Id: packet-portmap.c,v 1.12 2000/01/22 05:49:06 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -285,9 +285,9 @@ int dissect_rpcb(const u_char *pd, int offset, frame_data *fd, proto_tree *tree, offset+0, 4, version); offset += 4; - offset = dissect_rpc_string(pd, offset, fd, rpcb_tree, hf_portmap_rpcb_netid); - offset = dissect_rpc_string(pd, offset, fd, rpcb_tree, hf_portmap_rpcb_addr); - offset = dissect_rpc_string(pd, offset, fd, rpcb_tree, hf_portmap_rpcb_owner); + offset = dissect_rpc_string(pd, offset, fd, rpcb_tree, hf_portmap_rpcb_netid,NULL); + offset = dissect_rpc_string(pd, offset, fd, rpcb_tree, hf_portmap_rpcb_addr,NULL); + offset = dissect_rpc_string(pd, offset, fd, rpcb_tree, hf_portmap_rpcb_owner,NULL); /* now we know, that rpcb is shorter */ if (rpcb_item) { @@ -313,7 +313,7 @@ int dissect_rpcb3_getaddr_call(const u_char *pd, int offset, frame_data *fd, int dissect_rpcb3_getaddr_reply(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) { - offset = dissect_rpc_string(pd, offset, fd, tree, hf_portmap_uaddr); + offset = dissect_rpc_string(pd, offset, fd, tree, hf_portmap_uaddr,NULL); return offset; } |