106 lines
3.1 KiB
C
106 lines
3.1 KiB
C
#ifndef __RPC_PMAP_PROT_H__
|
|
#define __RPC_PMAP_PROT_H__
|
|
#ident "$Revision: 2.11 $"
|
|
/*
|
|
*
|
|
* Copyright 1992, Silicon Graphics, Inc.
|
|
* All Rights Reserved.
|
|
*
|
|
* This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
|
|
* the contents of this file may not be disclosed to third parties, copied or
|
|
* duplicated in any form, in whole or in part, without the prior written
|
|
* permission of Silicon Graphics, Inc.
|
|
*
|
|
* RESTRICTED RIGHTS LEGEND:
|
|
* Use, duplication or disclosure by the Government is subject to restrictions
|
|
* as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
|
|
* and Computer Software clause at DFARS 252.227-7013, and/or in similar or
|
|
* successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
|
|
* rights reserved under the Copyright Laws of the United States.
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* @(#)pmap_prot.h 1.2 90/07/17 4.1NFSSRC SMI */
|
|
|
|
/*
|
|
* Copyright (c) 1990 by Sun Microsystems, Inc.
|
|
* 1.14 88/02/08 SMI
|
|
*/
|
|
|
|
/*
|
|
* pmap_prot.h
|
|
* Protocol for the local binder service, or pmap.
|
|
*
|
|
*
|
|
* The following procedures are supported by the protocol:
|
|
*
|
|
* PMAPPROC_NULL() returns ()
|
|
* takes nothing, returns nothing
|
|
*
|
|
* PMAPPROC_SET(struct pmap) returns (bool_t)
|
|
* TRUE is success, FALSE is failure. Registers the tuple
|
|
* [prog, vers, prot, port].
|
|
*
|
|
* PMAPPROC_UNSET(struct pmap) returns (bool_t)
|
|
* TRUE is success, FALSE is failure. Un-registers pair
|
|
* [prog, vers]. prot and port are ignored.
|
|
*
|
|
* PMAPPROC_GETPORT(struct pmap) returns (long unsigned).
|
|
* 0 is failure. Otherwise returns the port number where the pair
|
|
* [prog, vers] is registered. It may lie!
|
|
*
|
|
* PMAPPROC_DUMP() RETURNS (struct pmaplist *)
|
|
*
|
|
* PMAPPROC_CALLIT(unsigned, unsigned, unsigned, string<>)
|
|
* RETURNS (port, string<>);
|
|
* usage: encapsulatedresults = PMAPPROC_CALLIT(prog, vers, proc, encapsulatedargs);
|
|
* Calls the procedure on the local machine. If it is not registered,
|
|
* this procedure is quite; ie it does not return error information!!!
|
|
* This procedure only is supported on rpc/udp and calls via
|
|
* rpc/udp. This routine only passes null authentication parameters.
|
|
* This file has no interface to xdr routines for PMAPPROC_CALLIT.
|
|
*
|
|
* The service supports remote procedure calls on udp/ip or tcp/ip socket 111.
|
|
*/
|
|
|
|
#define PMAP_MULTICAST_INADDR ((u_long)0xe0000202)
|
|
|
|
#define PMAPPORT ((u_short)111)
|
|
#define PMAPPROG ((u_long)100000)
|
|
#define PMAPVERS ((u_long)2)
|
|
#define PMAPVERS_PROTO ((u_long)2)
|
|
#define PMAPVERS_ORIG ((u_long)1)
|
|
#define PMAPPROC_NULL ((u_long)0)
|
|
#define PMAPPROC_SET ((u_long)1)
|
|
#define PMAPPROC_UNSET ((u_long)2)
|
|
#define PMAPPROC_GETPORT ((u_long)3)
|
|
#define PMAPPROC_DUMP ((u_long)4)
|
|
#define PMAPPROC_CALLIT ((u_long)5)
|
|
|
|
typedef struct pmap {
|
|
long unsigned pm_prog;
|
|
long unsigned pm_vers;
|
|
long unsigned pm_prot;
|
|
long unsigned pm_port;
|
|
} PMAP;
|
|
|
|
extern bool_t xdr_pmap(XDR *, struct pmap *);
|
|
|
|
typedef struct pmaplist {
|
|
struct pmap pml_map;
|
|
struct pmaplist *pml_next;
|
|
} PMAPLIST;
|
|
|
|
#ifndef _KERNEL
|
|
extern bool_t xdr_pmaplist(XDR *, struct pmaplist **);
|
|
#endif /*!_KERNEL*/
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* !__RPC_PMAP_PROT_H__ */
|