Coda Distributed File System
|
#include <stdio.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <rpc2/multi.h>
#include <rpc2/se.h>
Go to the source code of this file.
Classes | |
struct | RPC2_CountedBS |
struct | RPC2_BoundedBS |
struct | RPC2_HostIdent |
struct | RPC2_PortIdent |
struct | RPC2_SubsysIdent |
struct | RPC2_McastIdent |
struct | RPC2_PeerInfo |
struct | rpc2_LinkEntry |
struct | RPC2_PacketBuffer |
struct | RPC2_PacketBuffer::RPC2_PacketBufferPrefix |
struct | RPC2_PacketBuffer::RPC2_PacketHeader |
struct | RPC2_RequestFilter |
struct | RPC2_NewConnectionBody |
struct | RPC2_Options |
struct | RPC2_BindParms |
struct | arg |
struct | RPC2_Multicast |
struct | RPC2_NetLogEntry |
struct | RPC2_NetLog |
struct | CallCountEntry |
struct | MultiCallEntry |
struct | MultiStubWork |
struct | SStats |
struct | RStats |
Typedefs | |
typedef int32_t | RPC2_Integer |
typedef uint32_t | RPC2_Unsigned |
typedef uint8_t | RPC2_Byte |
typedef double | RPC2_Double |
typedef RPC2_Byte * | RPC2_ByteSeq |
typedef RPC2_ByteSeq | RPC2_String |
typedef RPC2_Byte | RPC2_EncryptionKey[RPC2_KEYSIZE] |
typedef RPC2_Integer | RPC2_Handle |
typedef struct RPC2_PacketBuffer | RPC2_PacketBuffer |
typedef struct arg | ARG |
typedef long | RPC2_GetKeys_func(RPC2_Integer *AuthenticationType, RPC2_CountedBS *cident, RPC2_EncryptionKey SharedSecret, RPC2_EncryptionKey sessionkey) |
typedef long | RPC2_AuthFail_func(RPC2_Integer AuthenticationType, RPC2_CountedBS *cident, RPC2_Integer EncryptionType, RPC2_HostIdent *PeerHost, RPC2_PortIdent *PeerPort) |
typedef long | RPC2_UnpackMulti_func(int HowMany, RPC2_Handle ConnHandleList[], ARG_INFO *ArgInfo, RPC2_PacketBuffer *Reply, long errcode, long idx) |
Functions | |
long | RPC2_Init (const char *VersionId, RPC2_Options *Options, RPC2_PortIdent *PortList, long RetryCount, struct timeval *KeepAliveInterval) |
void | RPC2_SetLog (FILE *, int) |
long | RPC2_Export (RPC2_SubsysIdent *Subsys) |
long | RPC2_DeExport (RPC2_SubsysIdent *Subsys) |
long | rpc2_AllocBuffer (long MinBodySize, RPC2_PacketBuffer **BufferPtr, const char *SrcFile, long SrcLine) |
long | RPC2_FreeBuffer (RPC2_PacketBuffer **Buffer) |
long | RPC2_SendResponse (RPC2_Handle ConnHandle, RPC2_PacketBuffer *Reply) |
long | RPC2_GetRequest (RPC2_RequestFilter *Filter, RPC2_Handle *ConnHandle, RPC2_PacketBuffer **Request, struct timeval *Patience, RPC2_GetKeys_func *, long EncryptionTypeMask, RPC2_AuthFail_func *) |
long | RPC2_MakeRPC (RPC2_Handle ConnHandle, RPC2_PacketBuffer *Request, SE_Descriptor *SDesc, RPC2_PacketBuffer **Reply, struct timeval *Patience, long EnqueueRequest) |
long | RPC2_MultiRPC (int HowMany, RPC2_Handle ConnHandleList[], RPC2_Integer RCList[], RPC2_Multicast *MCast, RPC2_PacketBuffer *Request, SE_Descriptor SDescList[], RPC2_UnpackMulti_func *, ARG_INFO *ArgInfo, struct timeval *BreathOfLife) |
long | RPC2_NewBinding (RPC2_HostIdent *Host, RPC2_PortIdent *Port, RPC2_SubsysIdent *Subsys, RPC2_BindParms *BParms, RPC2_Handle *ConnHandle) |
long | RPC2_InitSideEffect (RPC2_Handle ConnHandle, SE_Descriptor *SDesc) |
long | RPC2_CheckSideEffect (RPC2_Handle ConnHandle, SE_Descriptor *SDesc, long Flags) |
long | RPC2_Unbind (RPC2_Handle ConnHandle) |
long | RPC2_GetPrivatePointer (RPC2_Handle WhichConn, char **PrivatePtr) |
long | RPC2_SetPrivatePointer (RPC2_Handle WhichConn, char *PrivatePtr) |
long | RPC2_GetSEPointer (RPC2_Handle WhichConn, struct SFTP_Entry **SEPtr) |
long | RPC2_SetSEPointer (RPC2_Handle WhichConn, struct SFTP_Entry *SEPtr) |
long | RPC2_GetPeerInfo (RPC2_Handle WhichConn, RPC2_PeerInfo *PeerInfo) |
char * | RPC2_ErrorMsg (long rc) |
long | RPC2_DumpTrace (FILE *OutFile, long HowMany) |
long | RPC2_DumpState (FILE *OutFile, long Verbosity) |
long | RPC2_InitTraceBuffer (long HowMany) |
long | RPC2_LamportTime () |
long | RPC2_Enable (RPC2_Handle ConnHandle) |
long | RPC2_CreateMgrp (RPC2_Handle *MgroupHandle, RPC2_McastIdent *MulticastHost, RPC2_PortIdent *MulticastPort, RPC2_SubsysIdent *Subsys, RPC2_Integer SecurityLevel, RPC2_EncryptionKey SessionKey, RPC2_Integer EncryptionType, long SideEffectType) |
long | RPC2_AddToMgrp (RPC2_Handle MgroupHandle, RPC2_Handle ConnHandle) |
long | RPC2_RemoveFromMgrp (RPC2_Handle MgroupHandle, RPC2_Handle ConnHandle) |
long | RPC2_DeleteMgrp (RPC2_Handle MgroupHandle) |
long | MRPC_MakeMulti (int ServerOp, ARG ArgTypes[], RPC2_Integer HowMany, RPC2_Handle CIDList[], RPC2_Integer RCList[], RPC2_Multicast *MCast, RPC2_HandleResult_func *, struct timeval *Timeout,...) |
long | RPC2_SetColor (RPC2_Handle ConnHandle, RPC2_Integer Color) |
long | RPC2_GetColor (RPC2_Handle ConnHandle, RPC2_Integer *Color) |
long | RPC2_GetPeerLiveness (RPC2_Handle ConnHandle, struct timeval *Time, struct timeval *SETime) |
long | RPC2_GetNetInfo (RPC2_Handle ConnHandle, RPC2_NetLog *RPCLog, RPC2_NetLog *SELog) |
long | RPC2_PutNetInfo (RPC2_Handle ConnHandle, RPC2_NetLog *RPCLog, RPC2_NetLog *SELog) |
long | RPC2_ClearNetInfo (RPC2_Handle ConnHandle) |
long | getsubsysbyname (char *subsysName) |
int | RPC2_R2SError (int error) |
int | RPC2_S2RError (int error) |
int | RPC2_GetRTT (RPC2_Handle handle, unsigned long *RTT, unsigned long *RTTvar) |
int | RPC2_GetBandwidth (RPC2_Handle handle, unsigned long *BWlow, unsigned long *BWavg, unsigned long *BWhigh) |
int | RPC2_GetLastObs (RPC2_Handle handle, struct timeval *tv) |
int | RPC2_SetTimeout (RPC2_Handle whichConn, struct timeval timeout) |
int | struct_len (ARG **a_types, PARM **args) |
void | rpc2_Encrypt (char *FromBuffer, char *ToBuffer, size_t HowManyBytes, RPC2_EncryptionKey WhichKey, RPC2_Integer EncryptionType) |
void | rpc2_Decrypt (char *FromBuffer, char *ToBuffer, size_t HowManyBytes, RPC2_EncryptionKey WhichKey, RPC2_Integer EncryptionType) |
void | rpc2_InitRandom (void) |
unsigned int | rpc2_NextRandom (char *StatePtr) |
struct in_addr | RPC2_setip (struct in_addr *ip) |
void | RPC2_setbindaddr (RPC2_HostIdent *host) |
Variables | |
long | RPC2_DebugLevel |
long | RPC2_Perror |
long | RPC2_Trace |
long | RPC2_strict_ip_matching |
size_t | RPC2_Preferred_Keysize |
int | RPC2_secure_only |
long | rpc2_Bandwidth |
struct SStats | rpc2_Sent |
struct RStats | rpc2_Recvd |
struct SStats | rpc2_MSent |
struct RStats | rpc2_MRecvd |
int | rpc2_43bsd |
FILE * | rpc2_logfile |
FILE * | rpc2_tracefile |
int | RPC2_enableReaping |
RPC2_HostIdent | rpc2_LocalHost |
RPC2_PortIdent | rpc2_LocalPort |
long | rpc2_PBSmallCreationCount |
long | rpc2_PBSmallFreeCount |
long | rpc2_PBMediumCreationCount |
long | rpc2_PBMediumFreeCount |
long | rpc2_PBLargeCreationCount |
long | rpc2_PBLargeFreeCount |
long | rpc2_SLCreationCount |
long | rpc2_SLFreeCount |
long | rpc2_ConnCreationCount |
long | rpc2_ConnCount |
long | rpc2_ConnFreeCount |
long | rpc2_SSCreationCount |
long | rpc2_SSCount |
long | rpc2_SSFreeCount |
long | rpc2_Unbinds |
long | rpc2_FreeConns |
long | rpc2_AllocConns |
long | rpc2_GCConns |
long | rpc2_PBCount |
long | rpc2_PBHoldCount |
long | rpc2_PBFreezeCount |
long | rpc2_FreezeHWMark |
long | rpc2_HoldHWMark |
#define MGRPERROR | ( | code | ) |
#define RPC2_ABANDONED RPC2_WLIMIT - 5 |
#define RPC2_AllocBuffer | ( | x, | |
y | |||
) | (rpc2_AllocBuffer((long)(x), y, __FILE__, (long)__LINE__)) |
#define RPC2_AUTHONLY 12 /* Authenticated but not encrypted */ |
#define RPC2_BADDATA RPC2_WLIMIT - 3 |
#define RPC2_BADFILTER RPC2_FLIMIT - 11 |
#define RPC2_BADMGROUP RPC2_ELIMIT - 8 |
#define RPC2_BADSERVER RPC2_FLIMIT - 13 |
#define RPC2_BUSY -14 /* keep alive packet */ |
#define RPC2_CLOSECONNECTION RPC2_FLIMIT - 10 |
#define RPC2_CONNBUSY RPC2_ELIMIT - 1 |
#define RPC2_DEAD RPC2_FLIMIT - 15 |
#define RPC2_DES 1 |
#define RPC2_DUPLICATEMEMBER RPC2_ELIMIT - 7 |
#define RPC2_DUPLICATESERVER RPC2_FLIMIT - 5 |
#define RPC2_ELIMIT -1000 |
#define RPC2_ENCRYPTED 0x02 /* set by runtime system */ |
#define RPC2_FAIL RPC2_FLIMIT - 1 |
#define RPC2_FLIMIT -2000 |
#define RPC2_HEADERSONLY 73 /* Authenticated but only headers encrypted */ |
#define RPC2_INIT1AUTHONLY -3 /* Begin a new connection with security level RPC2_AUTHONLY */ |
#define RPC2_INIT1HEADERSONLY -4 /* Begin a new connection with security level RPC2_HEADERSONLY */ |
#define RPC2_INIT1OPENKIMONO -2 /* Begin a new connection with security level RPC2_OPENKIMONO */ |
#define RPC2_INIT1SECURE -5 /* Begin a new connection with security level RPC2_SECURE */ |
#define RPC2_INIT2 -10 /* Phase 2 of bind handshake */ |
#define RPC2_INIT3 -11 /* Phase 3 of bind handshake */ |
#define RPC2_INIT4 -12 /* Phase 4 of bind handshake */ |
#define RPC2_INITMULTICAST -15 /* Establish a multicast connection */ |
#define RPC2_INVALIDOPCODE RPC2_WLIMIT - 2 |
#define RPC2_LASTACK -6 /* Packet that acknowledges a reply */ |
#define RPC2_LWPNOTINIT RPC2_FLIMIT - 12 |
#define RPC2_MAXLOGLENGTH 32 |
#define RPC2_MAXPACKETSIZE 4500 |
#define RPC2_MAXQUANTUM ((unsigned)-1) |
#define RPC2_MGRPBUSY RPC2_ELIMIT - 5 |
#define RPC2_NAKED RPC2_FLIMIT - 16 |
#define RPC2_NEWCONNECTION |
#define RPC2_NOBINDING RPC2_FLIMIT - 4 |
#define RPC2_NOCONNECTION RPC2_FLIMIT - 2 |
#define RPC2_NOGREEDY RPC2_WLIMIT - 4 |
#define RPC2_NOMGROUP RPC2_ELIMIT - 4 |
#define RPC2_NOTAUTHENTICATED RPC2_FLIMIT - 9 |
#define RPC2_NOTCLIENT RPC2_FLIMIT - 7 |
#define RPC2_NOTGROUPMEMBER RPC2_ELIMIT - 6 |
#define RPC2_NOTWORKER RPC2_FLIMIT - 6 |
#define RPC2_OLDVERSION RPC2_WLIMIT - 1 |
#define RPC2_OPENKIMONO 98 /* Neither authenticated nor encrypted */ |
#define RPC2_OPTION_IPV6 0x1 |
#define RPC2_OPTION_VERBOSE_INIT 0x2 |
#define RPC2_PROTOVERSION 8 |
#define RPC2_RETRY 0x01 /* set by runtime system */ |
#define RPC2_SECURE 66 /* Authenticated and fully encrypted */ |
#define RPC2_SEFAIL1 RPC2_ELIMIT - 2 |
#define RPC2_SEFAIL2 RPC2_FLIMIT - 14 |
#define RPC2_SEFAIL3 RPC2_FLIMIT - 17 /* More error codes for side effects */ |
#define RPC2_SEFAIL4 RPC2_FLIMIT - 18 /* More error codes for side effects */ |
#define RPC2_SUCCESS 0 |
#define RPC2_TIMEOUT RPC2_FLIMIT - 3 |
#define RPC2_TOOLONG RPC2_ELIMIT - 3 |
#define RPC2_VERSION "Version 15.0: JH, 10 Dec 1998, 12:00" |
#define RPC2_WLIMIT -1 |
#define RPC2_WRONGVERSION RPC2_FLIMIT - 8 |
#define RPC2_XOR 2 |
typedef long RPC2_AuthFail_func(RPC2_Integer AuthenticationType, RPC2_CountedBS *cident, RPC2_Integer EncryptionType, RPC2_HostIdent *PeerHost, RPC2_PortIdent *PeerPort) |
typedef RPC2_Byte* RPC2_ByteSeq |
typedef double RPC2_Double |
typedef RPC2_Byte RPC2_EncryptionKey[RPC2_KEYSIZE] |
typedef long RPC2_GetKeys_func(RPC2_Integer *AuthenticationType, RPC2_CountedBS *cident, RPC2_EncryptionKey SharedSecret, RPC2_EncryptionKey sessionkey) |
typedef RPC2_Integer RPC2_Handle |
typedef int32_t RPC2_Integer |
typedef struct RPC2_PacketBuffer RPC2_PacketBuffer |
typedef RPC2_ByteSeq RPC2_String |
typedef long RPC2_UnpackMulti_func(int HowMany, RPC2_Handle ConnHandleList[], ARG_INFO *ArgInfo, RPC2_PacketBuffer *Reply, long errcode, long idx) |
typedef uint32_t RPC2_Unsigned |
enum E1 |
enum E2 |
enum HostTag |
enum MgrpTag |
enum MODE |
enum NetLogEntryType |
enum NetLogTag |
enum PortTag |
enum SubsysTag |
enum TYPE_TAG |
enum WHO |
long getsubsysbyname | ( | char * | subsysName | ) |
long MRPC_MakeMulti | ( | int | ServerOp, |
ARG | ArgTypes[], | ||
RPC2_Integer | HowMany, | ||
RPC2_Handle | CIDList[], | ||
RPC2_Integer | RCList[], | ||
RPC2_Multicast * | MCast, | ||
RPC2_HandleResult_func * | HandleResult, | ||
struct timeval * | Timeout, | ||
... | |||
) |
long RPC2_AddToMgrp | ( | RPC2_Handle | MgroupHandle, |
RPC2_Handle | ConnHandle | ||
) |
long rpc2_AllocBuffer | ( | long | MinBodySize, |
RPC2_PacketBuffer ** | BufferPtr, | ||
const char * | SrcFile, | ||
long | SrcLine | ||
) |
long RPC2_CheckSideEffect | ( | RPC2_Handle | ConnHandle, |
SE_Descriptor * | SDesc, | ||
long | Flags | ||
) |
long RPC2_ClearNetInfo | ( | RPC2_Handle | ConnHandle | ) |
long RPC2_CreateMgrp | ( | RPC2_Handle * | MgroupHandle, |
RPC2_McastIdent * | MulticastHost, | ||
RPC2_PortIdent * | MulticastPort, | ||
RPC2_SubsysIdent * | Subsys, | ||
RPC2_Integer | SecurityLevel, | ||
RPC2_EncryptionKey | SessionKey, | ||
RPC2_Integer | EncryptionType, | ||
long | SideEffectType | ||
) |
void rpc2_Decrypt | ( | char * | FromBuffer, |
char * | ToBuffer, | ||
size_t | HowManyBytes, | ||
RPC2_EncryptionKey | WhichKey, | ||
RPC2_Integer | EncryptionType | ||
) |
long RPC2_DeExport | ( | RPC2_SubsysIdent * | Subsys | ) |
long RPC2_DeleteMgrp | ( | RPC2_Handle | MgroupHandle | ) |
long RPC2_DumpState | ( | FILE * | OutFile, |
long | Verbosity | ||
) |
long RPC2_DumpTrace | ( | FILE * | OutFile, |
long | HowMany | ||
) |
long RPC2_Enable | ( | RPC2_Handle | ConnHandle | ) |
void rpc2_Encrypt | ( | char * | FromBuffer, |
char * | ToBuffer, | ||
size_t | HowManyBytes, | ||
RPC2_EncryptionKey | WhichKey, | ||
RPC2_Integer | EncryptionType | ||
) |
char * RPC2_ErrorMsg | ( | long | rc | ) |
long RPC2_Export | ( | RPC2_SubsysIdent * | Subsys | ) |
long RPC2_FreeBuffer | ( | RPC2_PacketBuffer ** | Buffer | ) |
int RPC2_GetBandwidth | ( | RPC2_Handle | handle, |
unsigned long * | BWlow, | ||
unsigned long * | BWavg, | ||
unsigned long * | BWhigh | ||
) |
long RPC2_GetColor | ( | RPC2_Handle | ConnHandle, |
RPC2_Integer * | Color | ||
) |
int RPC2_GetLastObs | ( | RPC2_Handle | handle, |
struct timeval * | tv | ||
) |
long RPC2_GetNetInfo | ( | RPC2_Handle | ConnHandle, |
RPC2_NetLog * | RPCLog, | ||
RPC2_NetLog * | SELog | ||
) |
long RPC2_GetPeerInfo | ( | RPC2_Handle | WhichConn, |
RPC2_PeerInfo * | PeerInfo | ||
) |
long RPC2_GetPeerLiveness | ( | RPC2_Handle | ConnHandle, |
struct timeval * | Time, | ||
struct timeval * | SETime | ||
) |
long RPC2_GetPrivatePointer | ( | RPC2_Handle | WhichConn, |
char ** | PrivatePtr | ||
) |
long RPC2_GetRequest | ( | RPC2_RequestFilter * | Filter, |
RPC2_Handle * | ConnHandle, | ||
RPC2_PacketBuffer ** | Request, | ||
struct timeval * | Patience, | ||
RPC2_GetKeys_func * | , | ||
long | EncryptionTypeMask, | ||
RPC2_AuthFail_func * | |||
) |
int RPC2_GetRTT | ( | RPC2_Handle | handle, |
unsigned long * | RTT, | ||
unsigned long * | RTTvar | ||
) |
long RPC2_GetSEPointer | ( | RPC2_Handle | WhichConn, |
struct SFTP_Entry ** | SEPtr | ||
) |
long RPC2_Init | ( | const char * | VersionId, |
RPC2_Options * | Options, | ||
RPC2_PortIdent * | PortList, | ||
long | RetryCount, | ||
struct timeval * | KeepAliveInterval | ||
) |
void rpc2_InitRandom | ( | void | ) |
long RPC2_InitSideEffect | ( | RPC2_Handle | ConnHandle, |
SE_Descriptor * | SDesc | ||
) |
long RPC2_InitTraceBuffer | ( | long | HowMany | ) |
long RPC2_LamportTime | ( | ) |
long RPC2_MakeRPC | ( | RPC2_Handle | ConnHandle, |
RPC2_PacketBuffer * | Request, | ||
SE_Descriptor * | SDesc, | ||
RPC2_PacketBuffer ** | Reply, | ||
struct timeval * | Patience, | ||
long | EnqueueRequest | ||
) |
long RPC2_MultiRPC | ( | int | HowMany, |
RPC2_Handle | ConnHandleList[], | ||
RPC2_Integer | RCList[], | ||
RPC2_Multicast * | MCast, | ||
RPC2_PacketBuffer * | Request, | ||
SE_Descriptor | SDescList[], | ||
RPC2_UnpackMulti_func * | , | ||
ARG_INFO * | ArgInfo, | ||
struct timeval * | BreathOfLife | ||
) |
long RPC2_NewBinding | ( | RPC2_HostIdent * | Host, |
RPC2_PortIdent * | Port, | ||
RPC2_SubsysIdent * | Subsys, | ||
RPC2_BindParms * | BParms, | ||
RPC2_Handle * | ConnHandle | ||
) |
unsigned int rpc2_NextRandom | ( | char * | StatePtr | ) |
long RPC2_PutNetInfo | ( | RPC2_Handle | ConnHandle, |
RPC2_NetLog * | RPCLog, | ||
RPC2_NetLog * | SELog | ||
) |
int RPC2_R2SError | ( | int | error | ) |
long RPC2_RemoveFromMgrp | ( | RPC2_Handle | MgroupHandle, |
RPC2_Handle | ConnHandle | ||
) |
int RPC2_S2RError | ( | int | error | ) |
long RPC2_SendResponse | ( | RPC2_Handle | ConnHandle, |
RPC2_PacketBuffer * | Reply | ||
) |
void RPC2_setbindaddr | ( | RPC2_HostIdent * | host | ) |
long RPC2_SetColor | ( | RPC2_Handle | ConnHandle, |
RPC2_Integer | Color | ||
) |
struct in_addr RPC2_setip | ( | struct in_addr * | ip | ) |
void RPC2_SetLog | ( | FILE * | file, |
int | level | ||
) |
long RPC2_SetPrivatePointer | ( | RPC2_Handle | WhichConn, |
char * | PrivatePtr | ||
) |
long RPC2_SetSEPointer | ( | RPC2_Handle | WhichConn, |
struct SFTP_Entry * | SEPtr | ||
) |
int RPC2_SetTimeout | ( | RPC2_Handle | whichConn, |
struct timeval | timeout | ||
) |
long RPC2_Unbind | ( | RPC2_Handle | ConnHandle | ) |
|
extern |
long rpc2_AllocConns |
|
extern |
long rpc2_ConnCount |
|
extern |
long rpc2_ConnFreeCount |
|
extern |
|
extern |
long rpc2_FreeConns |
|
extern |
long rpc2_GCConns |
long rpc2_HoldHWMark |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
long rpc2_PBFreezeCount |
long rpc2_PBHoldCount |
|
extern |
long rpc2_PBLargeFreeCount |
|
extern |
long rpc2_PBMediumFreeCount |
|
extern |
long rpc2_PBSmallFreeCount |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
long rpc2_SLFreeCount |
long rpc2_SSCount |
|
extern |
long rpc2_SSFreeCount |
|
extern |
|
extern |
|
extern |
|
extern |