Coverage Report

Created: 2025-12-27 06:52

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/wireshark/epan/dissectors/packet-dcerpc-rs_unix.c
Line
Count
Source
1
/* packet-dcerpc-rs_unix.c
2
 *
3
 * Routines for dcerpc Unix ops
4
 * Copyright 2002, 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/security.tar.gz security/idl/rs_unix.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_rs_unix (void);
22
void proto_reg_handoff_rs_unix (void);
23
24
static int proto_rs_unix;
25
static int hf_rs_unix_opnum;
26
27
static int ett_rs_unix;
28
29
30
static e_guid_t uuid_rs_unix = { 0x361993c0, 0xb000, 0x0000, { 0x0d, 0x00, 0x00, 0x87, 0x84, 0x00, 0x00, 0x00 } };
31
static uint16_t ver_rs_unix = 1;
32
33
34
static const dcerpc_sub_dissector rs_unix_dissectors[] = {
35
  { 0, "getpwents", NULL, NULL },
36
  { 0, NULL, NULL, NULL },
37
};
38
39
void
40
proto_register_rs_unix (void)
41
14
{
42
14
  static hf_register_info hf[] = {
43
14
    { &hf_rs_unix_opnum,
44
14
      { "Operation", "rs_unix.opnum", FT_UINT16, BASE_DEC,
45
14
        NULL, 0x0, NULL, HFILL }}
46
14
  };
47
48
14
  static int *ett[] = {
49
14
    &ett_rs_unix,
50
14
  };
51
14
  proto_rs_unix = proto_register_protocol ("DCE/RPC RS_UNIX", "RS_UNIX", "rs_unix");
52
14
  proto_register_field_array (proto_rs_unix, hf, array_length (hf));
53
14
  proto_register_subtree_array (ett, array_length (ett));
54
14
}
55
56
void
57
proto_reg_handoff_rs_unix (void)
58
14
{
59
  /* Register the protocol as dcerpc */
60
14
  dcerpc_init_uuid (proto_rs_unix, ett_rs_unix, &uuid_rs_unix, ver_rs_unix, rs_unix_dissectors, hf_rs_unix_opnum);
61
14
}
62
63
/*
64
 * Editor modelines  -  https://www.wireshark.org/tools/modelines.html
65
 *
66
 * Local variables:
67
 * c-basic-offset: 8
68
 * tab-width: 8
69
 * indent-tabs-mode: t
70
 * End:
71
 *
72
 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
73
 * :indentSize=8:tabSize=8:noTabs=false:
74
 */