fc4f22475308f07181dfc3e64c3a25d163b9f0a0
[deb_libnfs.git] / portmap / portmap.x
1 /*
2 * From RFC1833
3 */
4
5 const PMAP_PORT = 111; /* portmapper port number */
6
7 struct pmap_mapping {
8 unsigned int prog;
9 unsigned int vers;
10 unsigned int prot;
11 unsigned int port;
12 };
13
14 struct pmap_call_args {
15 unsigned int prog;
16 unsigned int vers;
17 unsigned int proc;
18 opaque args<>;
19 };
20
21 struct pmap_call_result {
22 unsigned int port;
23 opaque res<>;
24 };
25
26 struct pmap_mapping_list {
27 pmap_mapping map;
28 pmap_mapping_list *next;
29 };
30
31 struct pmap_dump_result {
32 struct pmap_mapping_list *list;
33 };
34
35 program PMAP_PROGRAM {
36 version PMAP_V2 {
37 void
38 PMAP2_NULL(void) = 0;
39
40 bool
41 PMAP2_SET(pmap_mapping) = 1;
42
43 bool
44 PMAP2_UNSET(pmap_mapping) = 2;
45
46 unsigned int
47 PMAP2_GETPORT(pmap_mapping) = 3;
48
49 pmap_dump_result
50 PMAP2_DUMP(void) = 4;
51
52 pmap_call_result
53 PMAP2_CALLIT(pmap_call_args) = 5;
54 } = 2;
55 } = 100000;
56