diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2002-05-23 12:48:28 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2002-05-23 12:48:28 +0000 |
commit | 96da8b00b76598fc6a59290bb98e9d0129692ed0 (patch) | |
tree | fad7a3bef3078cefac75678266aec232f428387d /packet-dcerpc-mapi.c | |
parent | c33e33fb7ee43ce2cff140359f5bd188edcaf40e (diff) |
MAPI Logoff function fully decoded.
Ha, if the other functions are as
easy to figure out i will be a happy boy.
svn path=/trunk/; revision=5533
Diffstat (limited to 'packet-dcerpc-mapi.c')
-rw-r--r-- | packet-dcerpc-mapi.c | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/packet-dcerpc-mapi.c b/packet-dcerpc-mapi.c index 607eea414b..da27823df7 100644 --- a/packet-dcerpc-mapi.c +++ b/packet-dcerpc-mapi.c @@ -2,7 +2,7 @@ * Routines for MS Exchange MAPI * Copyright 2002, Ronnie Sahlberg * - * $Id: packet-dcerpc-mapi.c,v 1.2 2002/05/23 12:23:29 sahlberg Exp $ + * $Id: packet-dcerpc-mapi.c,v 1.3 2002/05/23 12:48:28 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -148,13 +148,37 @@ mapi_unknown_02_reply(tvbuff_t *tvb, int offset, return offset; } +static int +mapi_logoff_rqst(tvbuff_t *tvb, int offset, + packet_info *pinfo, proto_tree *tree, char *drep) +{ + offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep, + hf_mapi_hnd, NULL, FALSE, FALSE); + + return offset; +} + +static int +mapi_logoff_reply(tvbuff_t *tvb, int offset, + packet_info *pinfo, proto_tree *tree, char *drep) +{ + offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep, + hf_mapi_hnd, NULL, FALSE, FALSE); + + offset = dissect_ntstatus(tvb, offset, pinfo, tree, drep, + hf_mapi_rc, NULL); + + return offset; +} + static dcerpc_sub_dissector dcerpc_mapi_dissectors[] = { { MAPI_LOGON, "Logon", mapi_logon_rqst, mapi_logon_reply }, - { MAPI_LOGOFF, "Logoff", NULL, NULL }, - + { MAPI_LOGOFF, "Logoff", + mapi_logoff_rqst, + mapi_logoff_reply }, { MAPI_UNKNOWN_02, "unknown_02", mapi_unknown_02_request, mapi_unknown_02_reply }, |