[WIN32] added nfsclient-sync to the solution. still manually linked with libnfs becau...
[deb_libnfs.git] / portmap / portmap.x
... / ...
CommitLineData
1/*
2 * From RFC1833
3 */
4
5const PMAP_PORT = 111; /* portmapper port number */
6
7struct pmap_mapping {
8 unsigned int prog;
9 unsigned int vers;
10 unsigned int prot;
11 unsigned int port;
12};
13
14struct pmap_call_args {
15 unsigned int prog;
16 unsigned int vers;
17 unsigned int proc;
18 opaque args<>;
19};
20
21struct pmap_call_result {
22 unsigned int port;
23 opaque res<>;
24};
25
26program PMAP_PROGRAM {
27 version PMAP_V2 {
28 void
29 PMAP_NULL(void) = 0;
30
31 bool
32 PMAP_SET(pmap_mapping) = 1;
33
34 bool
35 PMAP_UNSET(pmap_mapping) = 2;
36
37 unsigned int
38 PMAP_GETPORT(pmap_mapping) = 3;
39
40 pmap_call_result
41 PMAP_CALLIT(pmap_call_args) = 5;
42 } = 2;
43} = 100000;
44