2 * Routines for bootparams dissection
4 * $Id: packet-bootparams.c,v 1.2 1999/11/10 21:05:09 nneul Exp $
6 * Ethereal - Network traffic analyzer
7 * By Gerald Combs <gerald@unicom.net>
8 * Copyright 1998 Gerald Combs
10 * Copied from packet-smb.c
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.
32 #ifdef HAVE_SYS_TYPES_H
33 #include <sys/types.h>
37 #include "packet-rpc.h"
38 #include "packet-bootparams.h"
40 static int proto_bootparams = -1;
42 /* proc number, "proc name", dissect_request, dissect_reply */
43 /* NULL as function pointer means: take the generic one. */
44 const vsff bootparams1_proc[] = {
45 { BOOTPARAMSPROC_NULL, "NULL", NULL, NULL },
46 { BOOTPARAMSPROC_WHOAMI, "WHOAMI", NULL, NULL },
47 { BOOTPARAMSPROC_GETFILE, "GETFILE", NULL, NULL },
48 { 0, NULL, NULL, NULL }
50 /* end of Bootparams version 1 */
54 proto_register_bootparams(void)
56 proto_bootparams = proto_register_protocol("Boot Parameters", "bootparams");
58 /* Register the protocol as RPC */
59 rpc_init_prog(proto_bootparams, BOOTPARAMS_PROGRAM, ETT_BOOTPARAMS);
60 /* Register the procedure tables */
61 rpc_init_proc_table(BOOTPARAMS_PROGRAM, 1, bootparams1_proc);