Coverage Report

Created: 2025-02-15 06:25

/src/wireshark/epan/dissectors/packet-dcerpc-llb.c
Line
Count
Source
1
/* packet-dcerpc-llb.c
2
 *
3
 * Routines for llb dissection
4
 * Copyright 2004, Jaime Fournier <jaime.fournier@hush.com>
5
 * This information is based off the released idl files from opengroup.
6
 * ftp://ftp.opengroup.org/pub/dce122/dce/src/admin.tar.gz ./admin/dced/idl/llb.idl
7
 *
8
 * Wireshark - Network traffic analyzer
9
 * By Gerald Combs <gerald@wireshark.org>
10
 * Copyright 1998 Gerald Combs
11
 *
12
 * SPDX-License-Identifier: GPL-2.0-or-later
13
 */
14
15
#include "config.h"
16
17
18
#include <epan/packet.h>
19
#include "packet-dcerpc.h"
20
21
void proto_register_llb (void);
22
void proto_reg_handoff_llb (void);
23
24
static int proto_llb;
25
static int hf_llb_opnum;
26
27
static int ett_llb;
28
29
30
static e_guid_t uuid_llb =
31
  { 0x333b33c3, 0x0000, 0x0000, {0x0d, 0x00, 0x00, 0x87, 0x84, 0x00, 0x00,
32
                                 0x00} };
33
static uint16_t ver_llb = 4;
34
35
36
static const dcerpc_sub_dissector llb_dissectors[] = {
37
  {0, "insert", NULL, NULL},
38
  {1, "delete", NULL, NULL},
39
  {2, "lookup", NULL, NULL},
40
  {0, NULL, NULL, NULL}
41
};
42
43
void
44
proto_register_llb (void)
45
14
{
46
14
  static hf_register_info hf[] = {
47
14
    {&hf_llb_opnum,
48
14
     {"Operation", "llb.opnum", FT_UINT16, BASE_DEC, NULL, 0x0, NULL,
49
14
      HFILL}},
50
14
  };
51
52
14
  static int *ett[] = {
53
14
    &ett_llb,
54
14
  };
55
14
  proto_llb =
56
14
    proto_register_protocol ("DCE/RPC NCS 1.5.1 Local Location Broker", "llb",
57
14
                             "llb");
58
14
  proto_register_field_array (proto_llb, hf, array_length (hf));
59
14
  proto_register_subtree_array (ett, array_length (ett));
60
14
}
61
62
void
63
proto_reg_handoff_llb (void)
64
14
{
65
  /* Register the protocol as dcerpc */
66
14
  dcerpc_init_uuid (proto_llb, ett_llb, &uuid_llb, ver_llb, llb_dissectors,
67
14
                    hf_llb_opnum);
68
14
}
69
70
/*
71
 * Editor modelines  -  https://www.wireshark.org/tools/modelines.html
72
 *
73
 * Local Variables:
74
 * c-basic-offset: 2
75
 * tab-width: 8
76
 * indent-tabs-mode: nil
77
 * End:
78
 *
79
 * ex: set shiftwidth=2 tabstop=8 expandtab:
80
 * :indentSize=2:tabSize=8:noTabs=true:
81
 */