GETEXPORT: Use rpc_connect_program_async() flow during list exports
[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
26struct pmap_mapping_list {
27 pmap_mapping map;
28 pmap_mapping_list *next;
29};
30
31struct pmap_dump_result {
32 struct pmap_mapping_list *list;
33};
34
35program 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