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
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
;
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" },
38 /* end of YPXFR version 1 */
40 static const rpc_prog_vers_info ypxfr_vers_info
[] = {
41 { 1, ypxfr1_proc
, &hf_ypxfr_procedure_v1
},
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
}}
57 proto_ypxfr
= proto_register_protocol("Yellow Pages Transfer",
59 proto_register_field_array(proto_ypxfr
, hf
, array_length(hf
));
60 proto_register_subtree_array(ett
, array_length(ett
));
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
80 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
81 * :indentSize=8:tabSize=8:noTabs=false: