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