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