3 * $Id: packet-rwall.c,v 1.4 2001/06/18 02:17:52 guy Exp $
5 * Ethereal - Network traffic analyzer
6 * By Gerald Combs <gerald@ethereal.com>
7 * Copyright 1998 Gerald Combs
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
29 #ifdef HAVE_SYS_TYPES_H
30 #include <sys/types.h>
34 #include "packet-rpc.h"
35 #include "packet-rwall.h"
37 static int proto_rwall = -1;
38 static int hf_rwall_message = -1;
40 static gint ett_rwall = -1;
43 dissect_rwall_call(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree)
45 offset = dissect_rpc_string(tvb, pinfo, tree, hf_rwall_message, offset, NULL);
50 static const vsff rwall_proc[] = {
51 { RWALL_WALL, "RWALL",
52 dissect_rwall_call, NULL },
53 { 0, NULL, NULL, NULL }
58 proto_register_rwall(void)
60 static hf_register_info hf[] = {
61 { &hf_rwall_message, {
62 "Message", "rwall.message", FT_STRING, BASE_DEC,
63 NULL, 0, "Message", HFILL }},
66 static gint *ett[] = {
70 proto_rwall = proto_register_protocol("Remote Wall protocol",
72 proto_register_field_array(proto_rwall, hf, array_length(hf));
73 proto_register_subtree_array(ett, array_length(ett));
77 proto_reg_handoff_rwall(void)
79 /* Register the protocol as RPC */
80 rpc_init_prog(proto_rwall, RWALL_PROGRAM, ett_rwall);
81 /* Register the procedure tables */
82 rpc_init_proc_table(RWALL_PROGRAM, 1, rwall_proc);