summaryrefslogtreecommitdiff
path: root/analyzers/src/watch/protocols/cifsv2_protocol.cpp
blob: 39a3f6a0fda8d55e4f3b610531b9481ad5c02011 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//------------------------------------------------------------------------------
// Author: Vitali Adamenka
// Description: Source for CIFSv2 protocol.
// Copyright (c) 2015 EPAM Systems. All Rights Reserved.
//------------------------------------------------------------------------------
/*
    This file is part of Nfstrace.

    Nfstrace is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, version 2 of the License.

    Nfstrace is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Nfstrace.  If not, see <http://www.gnu.org/licenses/>.
*/
//------------------------------------------------------------------------------
#include <api/plugin_api.h> // include plugin development definitions
#include "cifsv2_protocol.h"
//------------------------------------------------------------------------------
CIFSv2Protocol::CIFSv2Protocol()
: AbstractProtocol {"CIFS v2", static_cast<std::size_t>(SMBv2::SMBv2Commands::CMD_COUNT)}
{
}

CIFSv2Protocol::~CIFSv2Protocol()
{
}

const char* CIFSv2Protocol::printProcedure(std::size_t i)
{
    if ( i >= static_cast<std::size_t>(SMBv2::SMBv2Commands::CMD_COUNT)) { return nullptr; }
    return print_cifs2_procedures(static_cast<SMBv2::SMBv2Commands>(i));
}
//------------------------------------------------------------------------------

//------------------------------------------------------------------------------