add RPC definition for the portmapper/callit function
[deb_libnfs.git] / portmap / portmap.x
CommitLineData
84004dbf
RS
1/*
2 * From RFC1833
3 */
4
5const PMAP_PORT = 111; /* portmapper port number */
6
7struct mapping {
8 unsigned int prog;
9 unsigned int vers;
10 unsigned int prot;
11 unsigned int port;
12};
13
14struct call_args {
15 unsigned int prog;
16 unsigned int vers;
17 unsigned int proc;
18 opaque args<>;
19};
20
947e8930
RS
21struct call_result {
22 unsigned int port;
23 opaque res<>;
24};
84004dbf
RS
25
26program PMAP_PROGRAM {
27 version PMAP_V2 {
28 void
29 PMAP_NULL(void) = 0;
30
31 bool
32 PMAP_SET(mapping) = 1;
33
34 bool
35 PMAP_UNSET(mapping) = 2;
36
37 unsigned int
38 PMAP_GETPORT(mapping) = 3;
947e8930
RS
39
40 call_result
41 PMAP_CALLIT(call_args) = 5;
84004dbf
RS
42 } = 2;
43} = 100000;
44