Add a new "prefs_register_protocol()" routine, which is like
[obnox/wireshark/wip.git] / packet-portmap.h
1 /* packet-portmap.h
2  *
3  * $Id: packet-portmap.h,v 1.4 2000/08/11 13:34:03 deniel Exp $
4  * 
5  * Ethereal - Network traffic analyzer
6  * By Gerald Combs <gerald@zing.org>
7  * Copyright 1998 Gerald Combs
8  *
9  * 
10  * This program is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU General Public License
12  * as published by the Free Software Foundation; either version 2
13  * of the License, or (at your option) any later version.
14  * 
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  * 
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
23  */
24
25 #ifndef PACKET_PORTMAP_H
26 #define PACKET_PORTMAP_H
27
28 #define PORTMAP_PROGRAM  100000
29
30 #define PORTMAPPROC_NULL     0
31 #define PORTMAPPROC_SET      1
32 #define PORTMAPPROC_UNSET    2
33 #define PORTMAPPROC_GETPORT  3
34 #define PORTMAPPROC_DUMP     4
35 #define PORTMAPPROC_CALLIT   5
36
37 /* RFC 1833, Page 7 */
38 #define RPCBPROC_NULL           0
39 #define RPCBPROC_SET            1
40 #define RPCBPROC_UNSET          2
41 #define RPCBPROC_GETADDR        3
42 #define RPCBPROC_DUMP           4
43 #define RPCBPROC_CALLIT         5
44 #define RPCBPROC_GETTIME        6
45 #define RPCBPROC_UADDR2TADDR    7
46 #define RPCBPROC_TADDR2UADDR    8
47
48 /* RFC 1833, Page 8 */
49 #define RPCBPROC_BCAST          RPCBPROC_CALLIT
50 #define RPCBPROC_GETVERSADDR    9
51 #define RPCBPROC_INDIRECT       10
52 #define RPCBPROC_GETADDRLIST    11
53 #define RPCBPROC_GETSTAT        12
54
55 struct pmap {
56         guint32 pm_prog;
57         guint32 pm_vers;
58         guint32 pm_prot;
59         guint32 pm_port;
60 };
61
62 #endif