PORTMAP: Rename pmap3_getaddr_result to pmap3_string_result
[deb_libnfs.git] / portmap / portmap.x
CommitLineData
84004dbf
RS
1/*
2 * From RFC1833
3 */
4
5const PMAP_PORT = 111; /* portmapper port number */
6
4edd7830 7struct pmap2_mapping {
84004dbf
RS
8 unsigned int prog;
9 unsigned int vers;
10 unsigned int prot;
11 unsigned int port;
12};
13
4edd7830 14struct pmap2_call_args {
84004dbf
RS
15 unsigned int prog;
16 unsigned int vers;
17 unsigned int proc;
18 opaque args<>;
19};
20
4edd7830 21struct pmap2_call_result {
947e8930
RS
22 unsigned int port;
23 opaque res<>;
24};
84004dbf 25
4edd7830
RS
26struct pmap2_mapping_list {
27 pmap2_mapping map;
28 pmap2_mapping_list *next;
8ae943f6
RS
29};
30
4edd7830
RS
31struct pmap2_dump_result {
32 struct pmap2_mapping_list *list;
33};
34
24f45c54 35struct pmap3_string_result {
7fbedfde
RS
36 string addr<>;
37};
38
4edd7830
RS
39struct pmap3_mapping {
40 unsigned int prog;
41 unsigned int vers;
42 string netid<>;
43 string addr<>;
44 string owner<>;
45};
46
47struct pmap3_mapping_list {
48 pmap3_mapping map;
49 pmap3_mapping_list *next;
50};
51
52struct pmap3_dump_result {
53 struct pmap3_mapping_list *list;
8ae943f6
RS
54};
55
b71f7e82
RS
56struct pmap3_call_args {
57 unsigned int prog;
58 unsigned int vers;
59 unsigned int proc;
60 opaque args<>;
61};
62
63struct pmap3_call_result {
64 unsigned int port;
65 opaque res<>;
66};
67
729266a7
RS
68struct pmap3_netbuf {
69 unsigned int maxlen;
70 opaque buf<>;
71};
72
84004dbf
RS
73program PMAP_PROGRAM {
74 version PMAP_V2 {
75 void
0f0e352f 76 PMAP2_NULL(void) = 0;
84004dbf
RS
77
78 bool
4edd7830 79 PMAP2_SET(pmap2_mapping) = 1;
84004dbf
RS
80
81 bool
4edd7830 82 PMAP2_UNSET(pmap2_mapping) = 2;
84004dbf
RS
83
84 unsigned int
4edd7830 85 PMAP2_GETPORT(pmap2_mapping) = 3;
947e8930 86
4edd7830 87 pmap2_dump_result
7fbedfde 88 PMAP2_DUMP(void) = 4;
8ae943f6 89
4edd7830
RS
90 pmap2_call_result
91 PMAP2_CALLIT(pmap2_call_args) = 5;
84004dbf 92 } = 2;
4edd7830
RS
93 version PMAP_V3 {
94 void
95 PMAP3_NULL(void) = 0;
96
d731e94c
RS
97 bool
98 PMAP3_SET(pmap3_mapping) = 1;
99
100 bool
101 PMAP3_UNSET(pmap3_mapping) = 2;
102
24f45c54 103 pmap3_string_result
7fbedfde
RS
104 PMAP3_GETADDR(pmap3_mapping) = 3;
105
4edd7830
RS
106 pmap3_dump_result
107 PMAP3_DUMP(void) = 4;
5245608a 108
b71f7e82
RS
109 pmap3_call_result
110 PMAP3_CALLIT(pmap3_call_args) = 5;
111
5245608a
RS
112 unsigned int
113 PMAP3_GETTIME(void) = 6;
729266a7
RS
114
115 pmap3_netbuf
116 PMAP3_UADDR2TADDR(string) = 7;
29258a73 117
24f45c54 118 struct pmap3_string_result
29258a73 119 PMAP3_TADDR2UADDR(pmap3_netbuf) = 8;
4edd7830 120 } = 3;
84004dbf
RS
121} = 100000;
122