8921b92df7cc112329b96cc7af6979c17bbff69d
[ccan] / ccan / nfs / portmap.x
1 /*
2  * From RFC1833
3  */
4
5 const PMAP_PORT = 111;      /* portmapper port number */
6
7 struct mapping {
8        unsigned int prog;
9        unsigned int vers;
10        unsigned int prot;
11        unsigned int port;
12 };
13
14 struct call_args {
15        unsigned int prog;
16        unsigned int vers;
17        unsigned int proc;
18        opaque args<>;
19 };
20
21
22 program PMAP_PROGRAM {
23         version PMAP_V2 {
24                 void
25                 PMAP_NULL(void)         = 0;
26
27                 bool
28                 PMAP_SET(mapping)       = 1;
29
30                 bool
31                 PMAP_UNSET(mapping)     = 2;
32
33                 unsigned int
34                 PMAP_GETPORT(mapping)   = 3;
35         } = 2;
36 } = 100000;
37