X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=portmap%2Fportmap.x;h=fc4f22475308f07181dfc3e64c3a25d163b9f0a0;hb=f694a287ae3de83e32f07771bd6257779494ecaa;hp=8921b92df7cc112329b96cc7af6979c17bbff69d;hpb=84004dbf9bb2ab8a7f8b968affc53ee3065fa911;p=deb_libnfs.git diff --git a/portmap/portmap.x b/portmap/portmap.x index 8921b92..fc4f224 100644 --- a/portmap/portmap.x +++ b/portmap/portmap.x @@ -4,34 +4,53 @@ const PMAP_PORT = 111; /* portmapper port number */ -struct mapping { +struct pmap_mapping { unsigned int prog; unsigned int vers; unsigned int prot; unsigned int port; }; -struct call_args { +struct pmap_call_args { unsigned int prog; unsigned int vers; unsigned int proc; opaque args<>; }; +struct pmap_call_result { + unsigned int port; + opaque res<>; +}; + +struct pmap_mapping_list { + pmap_mapping map; + pmap_mapping_list *next; +}; + +struct pmap_dump_result { + struct pmap_mapping_list *list; +}; program PMAP_PROGRAM { version PMAP_V2 { void - PMAP_NULL(void) = 0; + PMAP2_NULL(void) = 0; bool - PMAP_SET(mapping) = 1; + PMAP2_SET(pmap_mapping) = 1; bool - PMAP_UNSET(mapping) = 2; + PMAP2_UNSET(pmap_mapping) = 2; unsigned int - PMAP_GETPORT(mapping) = 3; + PMAP2_GETPORT(pmap_mapping) = 3; + + pmap_dump_result + PMAP2_DUMP(void) = 4; + + pmap_call_result + PMAP2_CALLIT(pmap_call_args) = 5; } = 2; } = 100000;