diff options
author | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-10-22 05:15:25 +0000 |
---|---|---|
committer | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-10-22 05:15:25 +0000 |
commit | 80d91d4db59ac90ae25a877e1bb6578279a1e98a (patch) | |
tree | 79c2d02b6c705c7af09a356e399f24190f981f24 /epan/dissectors/packet-smb.c | |
parent | f9f7d52bbe7cb3f83c80da5ad1ce8b1143fdde75 (diff) |
From CaL Turney:
Add support for well-known SIDs/RIDs and option to display in hex.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5286
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34613 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-smb.c')
-rw-r--r-- | epan/dissectors/packet-smb.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/epan/dissectors/packet-smb.c b/epan/dissectors/packet-smb.c index 442d9d258c..f48321aeee 100644 --- a/epan/dissectors/packet-smb.c +++ b/epan/dissectors/packet-smb.c @@ -887,7 +887,7 @@ static int dissect_smb_command(tvbuff_t *tvb, packet_info *pinfo, int offset, pr offset += len; \ *bcp -= len; - +sid_display_hex = FALSE; gboolean sid_name_snooping = FALSE; /* Compare funtion to maintain the GSL_fid_info ordered @@ -19953,6 +19953,12 @@ proto_register_smb(void) "Whether the dissector should snoop SMB and related CIFS protocols to discover and display Names associated with SIDs", &sid_name_snooping); + /* For display of SIDs and RIDs in Hex option */ + prefs_register_bool_preference(smb_module, "sid_display_hex", + "Display SIDs in Hex", + "Whether the dissector should display SIDs and RIDs in hexadecimal rather than decimal", + &sid_display_hex); + register_init_routine(smb_trans_reassembly_init); smb_tap = register_tap("smb"); |