diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-08-02 23:46:14 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-08-02 23:46:14 +0000 |
commit | 8b73c7905687775416505d7a68e6b8aeb199872e (patch) | |
tree | 6516579894d4b4b711a37ad7c7ab9e7dfde042e1 /epan/dissectors/packet-smb-logon.c | |
parent | 135dd00b1451ab86cee30cca5a4850da0a4980ad (diff) |
"dissect_smb_unknown()" isn't some generic routine, it's used only to
dissect unknown netlogon commands; move it to "packet-smb-logon.c".
svn path=/trunk/; revision=11589
Diffstat (limited to 'epan/dissectors/packet-smb-logon.c')
-rw-r--r-- | epan/dissectors/packet-smb-logon.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/epan/dissectors/packet-smb-logon.c b/epan/dissectors/packet-smb-logon.c index 86951f6af5..bfb72b3ffd 100644 --- a/epan/dissectors/packet-smb-logon.c +++ b/epan/dissectors/packet-smb-logon.c @@ -731,6 +731,16 @@ dissect_smb_sam_logon_resp(tvbuff_t *tvb, packet_info *pinfo _U_, return offset; } +static int +dissect_smb_unknown(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset) +{ + /* display data as unknown */ + + proto_tree_add_text(tree, tvb, offset, -1, "Data (%u bytes)", + tvb_reported_length_remaining(tvb, offset)); + + return offset+tvb_length_remaining(tvb, offset); +} #define LOGON_LM10_LOGON_REQUEST 0x00 #define LOGON_LM10_LOGON_RESPONSE 0x01 @@ -790,7 +800,6 @@ static const value_string commands[] = { {0, NULL} }; - static int (*dissect_smb_logon_cmds[])(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) = { dissect_smb_logon_request, /* 0x00 (LM1.0/LM2.0 LOGON Request) */ dissect_smb_logon_LM10_resp,/* 0x01 (LM1.0 LOGON Response) */ |