epan/dissectors/pidl/samr/samr.cnf cnf_dissect_lsa_BinaryString => lsarpc_dissect_str...
[wireshark-sm.git] / epan / dissectors / packet-ypxfr.c
blobb0e3d073f1ead1d71f86ee836f45344377fbe5f3
1 /* packet-ypxfr.c
2 * Routines for ypxfr dissection
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * Copied from packet-smb.c
10 * SPDX-License-Identifier: GPL-2.0-or-later
13 #include "config.h"
15 #include "packet-rpc.h"
16 #include "packet-ypxfr.h"
18 void proto_register_ypxfr(void);
19 void proto_reg_handoff_ypxfr(void);
21 static int proto_ypxfr;
22 static int hf_ypxfr_procedure_v1;
24 static int ett_ypxfr;
26 /* proc number, "proc name", dissect_request, dissect_reply */
27 static const vsff ypxfr1_proc[] = {
28 { YPXFRPROC_NULL, "NULL",
29 dissect_rpc_void, dissect_rpc_void },
30 { YPXFRPROC_GETMAP, "GETMAP", dissect_rpc_unknown, dissect_rpc_unknown },
31 { 0, NULL, NULL, NULL }
33 static const value_string ypxfr1_proc_vals[] = {
34 { YPXFRPROC_NULL, "NULL" },
35 { YPXFRPROC_GETMAP, "GETMAP" },
36 { 0, NULL }
38 /* end of YPXFR version 1 */
40 static const rpc_prog_vers_info ypxfr_vers_info[] = {
41 { 1, ypxfr1_proc, &hf_ypxfr_procedure_v1 },
44 void
45 proto_register_ypxfr(void)
47 static hf_register_info hf[] = {
48 { &hf_ypxfr_procedure_v1, {
49 "V1 Procedure", "ypxfr.procedure_v1", FT_UINT32, BASE_DEC,
50 VALS(ypxfr1_proc_vals), 0, NULL, HFILL }}
53 static int *ett[] = {
54 &ett_ypxfr
57 proto_ypxfr = proto_register_protocol("Yellow Pages Transfer",
58 "YPXFR", "ypxfr");
59 proto_register_field_array(proto_ypxfr, hf, array_length(hf));
60 proto_register_subtree_array(ett, array_length(ett));
63 void
64 proto_reg_handoff_ypxfr(void)
66 /* Register the protocol as RPC */
67 rpc_init_prog(proto_ypxfr, YPXFR_PROGRAM, ett_ypxfr,
68 G_N_ELEMENTS(ypxfr_vers_info), ypxfr_vers_info);
72 * Editor modelines - https://www.wireshark.org/tools/modelines.html
74 * Local variables:
75 * c-basic-offset: 8
76 * tab-width: 8
77 * indent-tabs-mode: t
78 * End:
80 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
81 * :indentSize=8:tabSize=8:noTabs=false: