Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / tcpdump / pmap_prot.h
blob412b967c3a626a3912d98d7ff55fd16f61772991
1 /* $NetBSD$ */
3 /* @(#) Header: /tcpdump/master/tcpdump/pmap_prot.h,v 1.1.2.2 2005/04/27 21:44:06 guy Exp (LBL) */
4 /*
5 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
6 * unrestricted use provided that this legend is included on all tape
7 * media and as a part of the software program in whole or part. Users
8 * may copy or modify Sun RPC without charge, but are not authorized
9 * to license or distribute it to anyone else except as part of a product or
10 * program developed by the user.
12 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
13 * WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
14 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
16 * Sun RPC is provided with no support and without any obligation on the
17 * part of Sun Microsystems, Inc. to assist in its use, correction,
18 * modification or enhancement.
20 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
21 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
22 * OR ANY PART THEREOF.
24 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
25 * or profits or other special, indirect and consequential damages, even if
26 * Sun has been advised of the possibility of such damages.
28 * Sun Microsystems, Inc.
29 * 2550 Garcia Avenue
30 * Mountain View, California 94043
32 * from: @(#)pmap_prot.h 1.14 88/02/08 SMI
33 * from: @(#)pmap_prot.h 2.1 88/07/29 4.0 RPCSRC
34 * $FreeBSD: src/include/rpc/pmap_prot.h,v 1.9.2.1 1999/08/29 14:39:05 peter Exp $
38 * pmap_prot.h
39 * Protocol for the local binder service, or pmap.
41 * Copyright (C) 1984, Sun Microsystems, Inc.
43 * The following procedures are supported by the protocol:
45 * PMAPPROC_NULL() returns ()
46 * takes nothing, returns nothing
48 * PMAPPROC_SET(struct pmap) returns (bool_t)
49 * TRUE is success, FALSE is failure. Registers the tuple
50 * [prog, vers, prot, port].
52 * PMAPPROC_UNSET(struct pmap) returns (bool_t)
53 * TRUE is success, FALSE is failure. Un-registers pair
54 * [prog, vers]. prot and port are ignored.
56 * PMAPPROC_GETPORT(struct pmap) returns (long unsigned).
57 * 0 is failure. Otherwise returns the port number where the pair
58 * [prog, vers] is registered. It may lie!
60 * PMAPPROC_DUMP() RETURNS (struct pmaplist *)
62 * PMAPPROC_CALLIT(unsigned, unsigned, unsigned, string<>)
63 * RETURNS (port, string<>);
64 * usage: encapsulatedresults = PMAPPROC_CALLIT(prog, vers, proc, encapsulatedargs);
65 * Calls the procedure on the local machine. If it is not registered,
66 * this procedure is quite; ie it does not return error information!!!
67 * This procedure only is supported on rpc/udp and calls via
68 * rpc/udp. This routine only passes null authentication parameters.
69 * This file has no interface to xdr routines for PMAPPROC_CALLIT.
71 * The service supports remote procedure calls on udp/ip or tcp/ip socket 111.
74 #define SUNRPC_PMAPPORT ((u_int16_t)111)
75 #define SUNRPC_PMAPPROG ((u_int32_t)100000)
76 #define SUNRPC_PMAPVERS ((u_int32_t)2)
77 #define SUNRPC_PMAPVERS_PROTO ((u_int32_t)2)
78 #define SUNRPC_PMAPVERS_ORIG ((u_int32_t)1)
79 #define SUNRPC_PMAPPROC_NULL ((u_int32_t)0)
80 #define SUNRPC_PMAPPROC_SET ((u_int32_t)1)
81 #define SUNRPC_PMAPPROC_UNSET ((u_int32_t)2)
82 #define SUNRPC_PMAPPROC_GETPORT ((u_int32_t)3)
83 #define SUNRPC_PMAPPROC_DUMP ((u_int32_t)4)
84 #define SUNRPC_PMAPPROC_CALLIT ((u_int32_t)5)
86 struct sunrpc_pmap {
87 u_int32_t pm_prog;
88 u_int32_t pm_vers;
89 u_int32_t pm_prot;
90 u_int32_t pm_port;