]>
The Tcpdump Group git mirrors - tcpdump/blob - win32/Include/Rpc/rpc.h
fe03c8e859e2da23a4fddf77aa31543462824550
2 * Copyright (c) 1999, 2000
3 * Politecnico di Torino. All rights reserved.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that: (1) source code distributions
7 * retain the above copyright notice and this paragraph in its entirety, (2)
8 * distributions including binary code include the above copyright notice and
9 * this paragraph in its entirety in the documentation or other materials
10 * provided with the distribution, and (3) all advertising materials mentioning
11 * features or use of this software display the following acknowledgement:
12 * ``This product includes software developed by the Politecnico
13 * di Torino, and its contributors.'' Neither the name of
14 * the University nor the names of its contributors may be used to endorse
15 * or promote products derived from this software without specific prior
17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
18 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
25 * failed at remote end
27 AUTH_BADCRED
=1, /* bogus credentials (seal broken) */
28 AUTH_REJECTEDCRED
=2, /* client should begin new session */
29 AUTH_BADVERF
=3, /* bogus verifier (seal broken) */
30 AUTH_REJECTEDVERF
=4, /* verifier expired or was replayed */
31 AUTH_TOOWEAK
=5, /* rejected due to security reasons */
35 AUTH_INVALIDRESP
=6, /* bogus response verifier */
36 AUTH_FAILED
=7 /* some unknown reason */
63 #define u_long unsigned long
64 #define u_int unsigned int
65 #define u_short unsigned short
70 enum_t oa_flavor
; /* flavor of auth */
71 caddr_t oa_base
; /* address of more auth stuff */
72 u_int oa_length
; /* not to exceed MAX_AUTH_BYTES */
75 struct accepted_reply
{
76 struct opaque_auth ar_verf
;
77 enum accept_stat ar_stat
;
87 /* and many other null cases */
89 #define ar_results ru.AR_results
90 #define ar_vers ru.AR_versions
93 struct rejected_reply
{
94 enum reject_stat rj_stat
;
100 enum auth_stat RJ_why
; /* why authentication did not work */
102 #define rj_vers ru.RJ_versions
103 #define rj_why ru.RJ_why
107 enum reply_stat rp_stat
;
109 struct accepted_reply RP_ar
;
110 struct rejected_reply RP_dr
;
112 #define rp_acpt ru.RP_ar
113 #define rp_rjct ru.RP_dr
117 u_long cb_rpcvers
; /* must be equal to two */
121 struct opaque_auth cb_cred
;
122 struct opaque_auth cb_verf
; /* protocol specific - provided by client */
127 enum msg_type rm_direction
;
129 struct call_body RM_cmb
;
130 struct reply_body RM_rmb
;
132 #define rm_call ru.RM_cmb
133 #define rm_reply ru.RM_rmb
136 #define PMAPPORT ((u_short)111)
137 #define PMAPPROG ((u_long)100000)
138 #define PMAPVERS ((u_long)2)
139 #define PMAPVERS_PROTO ((u_long)2)
140 #define PMAPVERS_ORIG ((u_long)1)
141 #define PMAPPROC_NULL ((u_long)0)
142 #define PMAPPROC_SET ((u_long)1)
143 #define PMAPPROC_UNSET ((u_long)2)
144 #define PMAPPROC_GETPORT ((u_long)3)
145 #define PMAPPROC_DUMP ((u_long)4)
146 #define PMAPPROC_CALLIT ((u_long)5)