PORTMAP: Rename the functions in PMAP to PMAP2 to desribe the version of PMAP we...
[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 25
8ae943f6
RS
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
84004dbf
RS
35program PMAP_PROGRAM {
36 version PMAP_V2 {
37 void
0f0e352f 38 PMAP2_NULL(void) = 0;
84004dbf
RS
39
40 bool
0f0e352f 41 PMAP2_SET(pmap_mapping) = 1;
84004dbf
RS
42
43 bool
0f0e352f 44 PMAP2_UNSET(pmap_mapping) = 2;
84004dbf
RS
45
46 unsigned int
0f0e352f 47 PMAP2_GETPORT(pmap_mapping) = 3;
947e8930 48
0f0e352f
RS
49 pmap_dump_result
50 PMAP2_DUMP(void) = 4;
8ae943f6 51
5cb18618 52 pmap_call_result
0f0e352f 53 PMAP2_CALLIT(pmap_call_args) = 5;
84004dbf
RS
54 } = 2;
55} = 100000;
56