Coda Distributed File System
Macros | Functions | Variables
packet.c File Reference
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/time.h>
#include <sys/file.h>
#include <sys/ioctl.h>
#include <errno.h>
#include <assert.h>
#include <rpc2/se.h>
#include <rpc2/secure.h>
#include "cbuf.h"
#include "codatunnel/wrapper.h"
#include "rpc2.private.h"
#include "trace.h"
Include dependency graph for packet.c:

Macros

#define MSG_CONFIRM   0
 

Functions

void rpc2_XmitPacket (RPC2_PacketBuffer *pb, struct RPC2_addrinfo *addr, int confirm)
 
struct security_associationrpc2_GetSA (uint32_t spi)
 
long rpc2_RecvPacket (IN long whichSocket, OUT RPC2_PacketBuffer *whichBuff)
 
long rpc2_InitRetry (IN long HowManyRetries, IN struct timeval *Beta0)
 
int RPC2_SetTimeout (RPC2_Handle whichConn, struct timeval timeout)
 
long rpc2_CancelRetry (struct CEntry *Conn, struct SL_Entry *Sle)
 
long rpc2_SendReliably (struct CEntry *Conn, struct SL_Entry *Sle, RPC2_PacketBuffer *Packet, struct timeval *TimeOut)
 
void rpc2_htonp (RPC2_PacketBuffer *p)
 
void rpc2_ntohp (RPC2_PacketBuffer *p)
 
void rpc2_InitPacket (RPC2_PacketBuffer *pb, struct CEntry *ce, long bodylen)
 

Variables

int(* Fail_SendPredicate )() = NULL
 
int(*)(*) Fail_RecvPredicate () = NULL
 

Macro Definition Documentation

◆ MSG_CONFIRM

#define MSG_CONFIRM   0

Function Documentation

◆ rpc2_CancelRetry()

long rpc2_CancelRetry ( struct CEntry Conn,
struct SL_Entry Sle 
)

◆ rpc2_GetSA()

struct security_association * rpc2_GetSA ( uint32_t  spi)

◆ rpc2_htonp()

void rpc2_htonp ( RPC2_PacketBuffer p)

◆ rpc2_InitPacket()

void rpc2_InitPacket ( RPC2_PacketBuffer pb,
struct CEntry ce,
long  bodylen 
)

◆ rpc2_InitRetry()

long rpc2_InitRetry ( IN long  HowManyRetries,
IN struct timeval *  Beta0 
)

◆ rpc2_ntohp()

void rpc2_ntohp ( RPC2_PacketBuffer p)

◆ rpc2_RecvPacket()

long rpc2_RecvPacket ( IN long  whichSocket,
OUT RPC2_PacketBuffer whichBuff 
)

◆ rpc2_SendReliably()

long rpc2_SendReliably ( struct CEntry Conn,
struct SL_Entry Sle,
RPC2_PacketBuffer Packet,
struct timeval *  TimeOut 
)

◆ RPC2_SetTimeout()

int RPC2_SetTimeout ( RPC2_Handle  whichConn,
struct timeval  timeout 
)

◆ rpc2_XmitPacket()

void rpc2_XmitPacket ( RPC2_PacketBuffer pb,
struct RPC2_addrinfo addr,
int  confirm 
)

Variable Documentation

◆ Fail_RecvPredicate

int(*)(*) Fail_RecvPredicate() ( ) = NULL

◆ Fail_SendPredicate

int(* Fail_SendPredicate) () ( ) = NULL