snort  2.9.17.1
About: Snort is a network intrusion prevention and detection system (IDS/IPS) combining the benefits of signature, protocol and anomaly-based inspection.
  Fossies Dox: snort-2.9.17.1.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

rpc.h
Go to the documentation of this file.
1 /* $Id$ */
2 /* $OpenBSD: rpc.h,v 1.7 1998/12/20 23:43:18 millert Exp $ */
3 /* $NetBSD: rpc.h,v 1.5 1994/12/04 01:15:30 cgd Exp $ */
4 
5 /*
6  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
7  * unrestricted use provided that this legend is included on all tape
8  * media and as a part of the software program in whole or part. Users
9  * may copy or modify Sun RPC without charge, but are not authorized
10  * to license or distribute it to anyone else except as part of a product or
11  * program developed by the user.
12  *
13  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
14  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
15  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
16  *
17  * Sun RPC is provided with no support and without any obligation on the
18  * part of Sun Microsystems, Inc. to assist in its use, correction,
19  * modification or enhancement.
20  *
21  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
22  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
23  * OR ANY PART THEREOF.
24  *
25  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
26  * or profits or other special, indirect and consequential damages, even if
27  * Sun has been advised of the possibility of such damages.
28  *
29  * Sun Microsystems, Inc.
30  * 2550 Garcia Avenue
31  * Mountain View, California 94043
32  *
33  * from: @(#)rpc.h 1.9 88/02/08 SMI
34  * @(#)rpc.h 2.4 89/07/11 4.0 RPCSRC
35  */
36 
37 /*
38  * rpc.h, Just includes the billions of rpc header files necessary to
39  * do remote procedure calling.
40  *
41  * Copyright (C) 1984, Sun Microsystems, Inc.
42  */
43 #ifndef _RPC_RPC_H
44 #define _RPC_RPC_H
45 
46 #include <rpc/types.h> /* some typedefs */
47 /* #include <netinet/in.h> */
48 
49 /* external data representation interfaces */
50 #include <rpc/xdr.h> /* generic (de)serializer */
51 
52 /* Client side only authentication */
53 #include <rpc/auth.h> /* generic authenticator (client side) */
54 
55 /* Client side (mostly) remote procedure call */
56 #include <rpc/clnt.h> /* generic rpc stuff */
57 
58 /* Client side (mostly) pmap functions */
59 #include <rpc/pmap_clnt.h> /* generic pmap stuff */
60 
61 /* semi-private protocol headers */
62 #include <rpc/rpc_msg.h> /* protocol for rpc messages */
63 #include <rpc/auth_unix.h> /* protocol for unix style cred */
64 /*
65  * Uncomment-out the next line if you are building the rpc library with
66  * DES Authentication (see the README file in the secure_rpc/ directory).
67  */
68 #ifdef notdef
69 #include <rpc/auth_des.h> /* protocol for des style cred */
70 #endif
71 
72 /* Server side only remote procedure callee */
73 #include <rpc/svc.h> /* service manager and multiplexer */
74 #include <rpc/svc_auth.h> /* service side authenticator */
75 
76 /*
77  * COMMENT OUT THE NEXT INCLUDE (or add to the #ifndef) IF RUNNING ON
78  * A VERSION OF UNIX THAT USES SUN'S NFS SOURCE. These systems will
79  * already have the structures defined by <rpc/netdb.h> included in <netdb.h>.
80  */
81 /* routines for parsing /etc/rpc */
82 
83 struct rpcent {
84  char *r_name; /* name of server for this rpc program */
85  char **r_aliases; /* alias list */
86  int r_number; /* rpc program number */
87 };
88 
90 extern struct rpcent *getrpcbyname __P((char *));
91 extern struct rpcent *getrpcbynumber __P((int));
92 extern struct rpcent *getrpcent __P((void));
93 extern void setrpcent __P((int));
94 extern void endrpcent __P((void));
95 
96 extern int get_myaddress __P((struct sockaddr_in *));
97 extern int registerrpc __P((int, int, int, char *(*) __P((char [UDPMSGSIZE])),
98  xdrproc_t, xdrproc_t));
99 extern int callrpc __P((char *, int, int, int, xdrproc_t, char *,
100  xdrproc_t , char *));
101 extern int getrpcport __P((char *, int, int, int));
102 
103 extern bool_t xdr_opaque_auth __P((XDR *, struct opaque_auth *));
105 
106 #endif /* !_RPC_RPC_H */
#define __END_DECLS
Definition: cdefs.h:21
#define __BEGIN_DECLS
Definition: cdefs.h:20
#define UDPMSGSIZE
Definition: clnt.h:373
__BEGIN_DECLS struct rpcent *getrpcbyname __P((char *))
Definition: xdr.h:105
Definition: rpc.h:83
char ** r_aliases
Definition: rpc.h:85
char * r_name
Definition: rpc.h:84
int r_number
Definition: rpc.h:86
#define bool_t
Definition: types.h:52