2 * Stubs for the Solstice admin daemon RPC service
4 * Guy Harris <guy@alum.mit.edu>
6 * $Id: packet-sadmind.c,v 1.2 2002/08/02 23:36:00 jmayer Exp $
8 * Ethereal - Network traffic analyzer
9 * By Gerald Combs <gerald@ethereal.com>
10 * Copyright 1998 Gerald Combs
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
33 #include "packet-rpc.h"
35 static int proto_sadmind = -1;
37 static gint ett_sadmind = -1;
39 #define SADMIND_PROGRAM 100232
41 #define SADMINDPROC_NULL 0
43 /* proc number, "proc name", dissect_request, dissect_reply */
44 /* NULL as function pointer means: type of arguments is "void". */
45 static const vsff sadmind1_proc[] = {
46 { SADMINDPROC_NULL, "NULL",
48 { 0, NULL, NULL, NULL }
51 static const vsff sadmind2_proc[] = {
52 { SADMINDPROC_NULL, "NULL",
54 { 0, NULL, NULL, NULL }
57 static const vsff sadmind3_proc[] = {
58 { SADMINDPROC_NULL, "NULL",
60 { 0, NULL, NULL, NULL }
64 proto_register_sadmind(void)
67 static hf_register_info hf[] = {
71 static gint *ett[] = {
75 proto_sadmind = proto_register_protocol("SADMIND", "SADMIND", "sadmind");
77 proto_register_field_array(proto_sadmind, hf, array_length(hf));
79 proto_register_subtree_array(ett, array_length(ett));
83 proto_reg_handoff_sadmind(void)
85 /* Register the protocol as RPC */
86 rpc_init_prog(proto_sadmind, SADMIND_PROGRAM, ett_sadmind);
87 /* Register the procedure tables */
88 rpc_init_proc_table(SADMIND_PROGRAM, 1, sadmind1_proc);
89 rpc_init_proc_table(SADMIND_PROGRAM, 2, sadmind2_proc);
90 rpc_init_proc_table(SADMIND_PROGRAM, 3, sadmind3_proc);