2011-02-06 07:45:09 +03:00
|
|
|
/*
|
|
|
|
* From RFC1833
|
|
|
|
*/
|
|
|
|
|
|
|
|
const PMAP_PORT = 111; /* portmapper port number */
|
|
|
|
|
2011-06-26 12:35:01 +04:00
|
|
|
struct pmap_mapping {
|
2011-02-06 07:45:09 +03:00
|
|
|
unsigned int prog;
|
|
|
|
unsigned int vers;
|
|
|
|
unsigned int prot;
|
|
|
|
unsigned int port;
|
|
|
|
};
|
|
|
|
|
2011-06-26 12:47:33 +04:00
|
|
|
struct pmap_call_args {
|
2011-02-06 07:45:09 +03:00
|
|
|
unsigned int prog;
|
|
|
|
unsigned int vers;
|
|
|
|
unsigned int proc;
|
|
|
|
opaque args<>;
|
|
|
|
};
|
|
|
|
|
2011-06-26 12:47:33 +04:00
|
|
|
struct pmap_call_result {
|
2011-06-25 07:59:12 +04:00
|
|
|
unsigned int port;
|
|
|
|
opaque res<>;
|
|
|
|
};
|
2011-02-06 07:45:09 +03:00
|
|
|
|
|
|
|
program PMAP_PROGRAM {
|
|
|
|
version PMAP_V2 {
|
|
|
|
void
|
2011-06-26 12:48:53 +04:00
|
|
|
PMAP_NULL(void) = 0;
|
2011-02-06 07:45:09 +03:00
|
|
|
|
|
|
|
bool
|
2011-06-26 12:35:01 +04:00
|
|
|
PMAP_SET(pmap_mapping) = 1;
|
2011-02-06 07:45:09 +03:00
|
|
|
|
|
|
|
bool
|
2011-06-26 12:35:01 +04:00
|
|
|
PMAP_UNSET(pmap_mapping) = 2;
|
2011-02-06 07:45:09 +03:00
|
|
|
|
|
|
|
unsigned int
|
2011-06-26 12:35:01 +04:00
|
|
|
PMAP_GETPORT(pmap_mapping) = 3;
|
2011-06-25 07:59:12 +04:00
|
|
|
|
2011-06-26 12:47:33 +04:00
|
|
|
pmap_call_result
|
|
|
|
PMAP_CALLIT(pmap_call_args) = 5;
|
2011-02-06 07:45:09 +03:00
|
|
|
} = 2;
|
|
|
|
} = 100000;
|
|
|
|
|