dsniff  2.4b2
About: A collection of tools for network auditing
  Fossies Dox: dsniff-2.4b2.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

rpc.c File Reference
#include "config.h"
#include <sys/types.h>
#include <rpc/rpc.h>
#include <stdio.h>
#include <string.h>
#include "decode.h"
#include "rpc.h"
Include dependency graph for rpc.c:

Go to the source code of this file.

Macros

#define XIDMAPSIZE   64
 

Functions

void xid_map_enter (u_int32_t xid, u_int32_t prog, u_int32_t vers, u_int32_t proc, void *data)
 
struct xid_mapxid_map_find (int xid)
 
int rpc_decode (u_char *buf, int len, struct rpc_msg *msg)
 

Variables

static struct xid_map xid_maps [64]
 
static int xid_map_next = 0
 
static int xid_map_hint = 0
 

Macro Definition Documentation

◆ XIDMAPSIZE

#define XIDMAPSIZE   64

Definition at line 20 of file rpc.c.

Function Documentation

◆ rpc_decode()

int rpc_decode ( u_char *  buf,
int  len,
struct rpc_msg *  msg 
)

Definition at line 70 of file rpc.c.

References buf, FRAGLEN, LASTFRAG, and pntohl.

Referenced by decode_mountd(), decode_nfs(), decode_portmap(), decode_yppasswd(), and decode_ypserv().

◆ xid_map_enter()

void xid_map_enter ( u_int32_t  xid,
u_int32_t  prog,
u_int32_t  vers,
u_int32_t  proc,
void *  data 
)

◆ xid_map_find()

struct xid_map* xid_map_find ( int  xid)

Definition at line 48 of file rpc.c.

References xid_map::xid, xid_map_hint, xid_maps, and XIDMAPSIZE.

Referenced by decode_mountd(), decode_nfs(), decode_portmap(), and decode_ypserv().

Variable Documentation

◆ xid_map_hint

int xid_map_hint = 0
static

Definition at line 25 of file rpc.c.

Referenced by xid_map_find().

◆ xid_map_next

int xid_map_next = 0
static

Definition at line 24 of file rpc.c.

Referenced by xid_map_enter().

◆ xid_maps

struct xid_map xid_maps[64]
static

Definition at line 22 of file rpc.c.

Referenced by xid_map_enter(), and xid_map_find().