Replace the types from sys/types.h and netinet/in.h by their glib.h
[obnox/wireshark/wip.git] / packet-sadmind.c
1 /* packet-sadmind.c
2  * Stubs for the Solstice admin daemon RPC service
3  *
4  * Guy Harris <guy@alum.mit.edu>
5  *
6  * $Id: packet-sadmind.c,v 1.2 2002/08/02 23:36:00 jmayer Exp $
7  *
8  * Ethereal - Network traffic analyzer
9  * By Gerald Combs <gerald@ethereal.com>
10  * Copyright 1998 Gerald Combs
11  *
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.
16  *
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.
21  *
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.
25  */
26
27 #ifdef HAVE_CONFIG_H
28 #include "config.h"
29 #endif
30
31
32
33 #include "packet-rpc.h"
34
35 static int proto_sadmind = -1;
36
37 static gint ett_sadmind = -1;
38
39 #define SADMIND_PROGRAM 100232
40
41 #define SADMINDPROC_NULL                0
42
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",
47                 NULL,   NULL },
48         { 0,    NULL,   NULL,   NULL }
49 };
50
51 static const vsff sadmind2_proc[] = {
52         { SADMINDPROC_NULL,     "NULL",
53                 NULL,   NULL },
54         { 0,    NULL,   NULL,   NULL }
55 };
56
57 static const vsff sadmind3_proc[] = {
58         { SADMINDPROC_NULL,     "NULL",
59                 NULL,   NULL },
60         { 0,    NULL,   NULL,   NULL }
61 };
62
63 void
64 proto_register_sadmind(void)
65 {
66 #if 0
67         static hf_register_info hf[] = {
68         };
69 #endif
70
71         static gint *ett[] = {
72                 &ett_sadmind,
73         };
74
75         proto_sadmind = proto_register_protocol("SADMIND", "SADMIND", "sadmind");
76 #if 0
77         proto_register_field_array(proto_sadmind, hf, array_length(hf));
78 #endif
79         proto_register_subtree_array(ett, array_length(ett));
80 }
81
82 void
83 proto_reg_handoff_sadmind(void)
84 {
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);
91 }