diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-02-10 02:38:24 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-02-10 02:38:24 +0000 |
commit | dae6dd9bcf8f21005286324b227a76b34f68e30c (patch) | |
tree | 061b730e3b03a39976d3d9872837f9edb7dde16b /packet-smb.c | |
parent | ec194a0766baf17a02dbec1472fa65c6446880e1 (diff) | |
download | wireshark-dae6dd9bcf8f21005286324b227a76b34f68e30c.tar.gz wireshark-dae6dd9bcf8f21005286324b227a76b34f68e30c.tar.bz2 wireshark-dae6dd9bcf8f21005286324b227a76b34f68e30c.zip |
Update some comments.
svn path=/trunk/; revision=7112
Diffstat (limited to 'packet-smb.c')
-rw-r--r-- | packet-smb.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/packet-smb.c b/packet-smb.c index 9cf33e13db..6e6a976d0f 100644 --- a/packet-smb.c +++ b/packet-smb.c @@ -3,7 +3,7 @@ * Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com> * 2001 Rewrite by Ronnie Sahlberg and Guy Harris * - * $Id: packet-smb.c,v 1.306 2003/02/08 08:55:13 guy Exp $ + * $Id: packet-smb.c,v 1.307 2003/02/10 02:38:24 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -7238,13 +7238,20 @@ dissect_nt_access_mask(tvbuff_t *tvb, gint offset, packet_info *pinfo, if (drep != NULL) { /* - * XXX - is this *ever* aligned with DCE RPC NDR - * alignment rules? + * Called from a DCE RPC protocol dissector, for a + * protocol where a 32-bit NDR integer contains + * an NT access mask; extract the access mask + * with an NDR call. */ offset = dissect_ndr_uint32(tvb, offset, pinfo, NULL, drep, hfindex, &access); } else { - /* Assume little-endian */ + /* + * Called from SMB, where the access mask is just a + * 4-byte little-endian quantity with no special + * NDR alignment requirement; extract it with + * "tvb_get_letohl()". + */ access = tvb_get_letohl(tvb, offset); offset += 4; } |