static int dissect_nlm_granted(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree,int version) { if(nlm_match_msgres){ rpc_call_info_value *rpc_call=(rpc_call_info_value *)pinfo->private_data; if(rpc_call->proc==10){ /* NLM_GRANTED_MSG */ if( (!pinfo->fd->flags.visited) ){ nlm_register_unmatched_msg(pinfo, tvb, offset); } else { nlm_print_msgres_request(pinfo, tree, tvb); } /* for the fhandle matching that finds both request and response packet */ if(nfs_fhandle_reqrep_matching){ nlm_match_fhandle_request(pinfo, tree); } } } offset = dissect_rpc_data(tvb, tree, hf_nlm_cookie, offset); offset = dissect_rpc_bool(tvb, tree, hf_nlm_exclusive, offset); offset = dissect_lock(tvb, pinfo, tree, version, offset); return offset; }
static int dissect_klm_unlock_call(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, void* data) { offset = dissect_lock(tvb, pinfo, tree, offset, (rpc_call_info_value*)data); return offset; }
static int dissect_klm_unlock_call(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { return dissect_lock(tvb, pinfo, tree, 0, (rpc_call_info_value*)data); }