diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-08-16 07:49:03 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-08-16 07:49:03 +0000 |
commit | e7d5fbaeff636c8728041c4b8168b96684b86230 (patch) | |
tree | 9fc1662983a95ea771c02780e11565bbd87fa793 /epan/dissectors/packet-mount.c | |
parent | 0b845c626f9f7522803eb0ef7810408111adeae1 (diff) |
prettify MNT (and friends) by placing the path in COL_INFO
svn path=/trunk/; revision=15373
Diffstat (limited to 'epan/dissectors/packet-mount.c')
-rw-r--r-- | epan/dissectors/packet-mount.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/epan/dissectors/packet-mount.c b/epan/dissectors/packet-mount.c index c2604882f5..cf2955996c 100644 --- a/epan/dissectors/packet-mount.c +++ b/epan/dissectors/packet-mount.c @@ -137,6 +137,8 @@ static int dissect_mount_dirpath_call(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree) { + char *mountpoint=NULL; + if((!pinfo->fd->flags.visited) && nfs_file_name_snooping){ rpc_call_info_value *civ=pinfo->private_data; @@ -165,11 +167,12 @@ dissect_mount_dirpath_call(tvbuff_t *tvb, int offset, packet_info *pinfo, } } - if ( tree ) - { - offset = dissect_rpc_string(tvb,tree,hf_mount_path,offset,NULL); + offset = dissect_rpc_string(tvb,tree,hf_mount_path,offset,&mountpoint); + if (check_col(pinfo->cinfo, COL_INFO)) { + col_append_fstr(pinfo->cinfo, COL_INFO," %s", mountpoint); } + return offset; } |