Coverage Report

Created: 2026-07-12 07:10

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/wireshark/epan/dissectors/packet-dcerpc-icl_rpc.c
Line
Count
Source
1
/* packet-dcerpc-icl_rpc.c
2
 * Routines for DCE DFS Scout dissection
3
 * Copyright 2002, Jaime Fournier <Jaime.Fournier@hush.com>
4
 * This information is based off the released idl files from opengroup.
5
 * ftp://ftp.opengroup.org/pub/dce122/dce/src/file.tar.gz icl_rpc.idl
6
 *
7
 * Wireshark - Network traffic analyzer
8
 * By Gerald Combs <gerald@wireshark.org>
9
 * Copyright 1998 Gerald Combs
10
 *
11
 * SPDX-License-Identifier: GPL-2.0-or-later
12
 */
13
14
#include "config.h"
15
16
17
#include <epan/packet.h>
18
#include "packet-dcerpc.h"
19
20
void proto_register_icl_rpc (void);
21
void proto_reg_handoff_icl_rpc (void);
22
23
static int proto_icl_rpc;
24
static int hf_icl_rpc_opnum;
25
26
27
static int ett_icl_rpc;
28
29
static e_guid_t uuid_icl_rpc = { 0x003fd39c, 0x7feb, 0x1bbc, { 0xbe, 0xbe, 0x02, 0x60, 0x8c, 0x2e, 0xf4, 0xd2 } };
30
static uint16_t ver_icl_rpc = 1;
31
32
33
34
static const dcerpc_sub_dissector icl_rpc_dissectors[] = {
35
  { 0, "DFSTRACE_GetSetInfo", NULL, NULL },
36
  { 1, "DFSTRACE_SetSetInfo", NULL, NULL },
37
  { 2, "DFSTRACE_GetLogInfo", NULL, NULL },
38
  { 3, "DFSTRACE_SetLogInfo", NULL, NULL },
39
  { 4, "DFSTRACE_ClearSet",   NULL, NULL },
40
  { 5, "DFSTRACE_ClearLog",   NULL, NULL },
41
  { 6, "DFSTRACE_DumpSet",    NULL, NULL },
42
  { 0, NULL, NULL, NULL }
43
};
44
45
void
46
proto_register_icl_rpc (void)
47
15
{
48
15
  static hf_register_info hf[] = {
49
15
  { &hf_icl_rpc_opnum,
50
15
    { "Operation", "icl_rpc.opnum", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }},
51
15
  };
52
53
15
  static int *ett[] = {
54
15
    &ett_icl_rpc,
55
15
  };
56
15
  proto_icl_rpc = proto_register_protocol ("DCE DFS ICL RPC", "ICL_RPC", "icl_rpc");
57
15
  proto_register_field_array (proto_icl_rpc, hf, array_length (hf));
58
15
  proto_register_subtree_array (ett, array_length (ett));
59
15
}
60
61
void
62
proto_reg_handoff_icl_rpc (void)
63
15
{
64
  /* Register the protocol as dcerpc */
65
15
  dcerpc_init_uuid (proto_icl_rpc, ett_icl_rpc, &uuid_icl_rpc, ver_icl_rpc, icl_rpc_dissectors, hf_icl_rpc_opnum);
66
15
}
67
68
/*
69
 * Editor modelines  -  https://www.wireshark.org/tools/modelines.html
70
 *
71
 * Local variables:
72
 * c-basic-offset: 8
73
 * tab-width: 8
74
 * indent-tabs-mode: t
75
 * End:
76
 *
77
 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
78
 * :indentSize=8:tabSize=8:noTabs=false:
79
 */