dsniff
2.4b2
About: A collection of tools for network auditing
![]() ![]() |
#include "config.h"
#include <sys/types.h>
#include <rpc/rpc.h>
#include <stdio.h>
#include <string.h>
#include "decode.h"
#include "rpc.h"
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_map * | xid_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 |
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().
void xid_map_enter | ( | u_int32_t | xid, |
u_int32_t | prog, | ||
u_int32_t | vers, | ||
u_int32_t | proc, | ||
void * | data | ||
) |
Definition at line 30 of file rpc.c.
References xid_map::data, xid_map::proc, xid_map::prog, xid_map::vers, xid_map::xid, xid_map_next, xid_maps, and XIDMAPSIZE.
Referenced by decode_mountd(), decode_portmap(), decode_ypserv(), nfs2_call(), and nfs3_call().
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().
|
static |
Definition at line 25 of file rpc.c.
Referenced by xid_map_find().
|
static |
Definition at line 24 of file rpc.c.
Referenced by xid_map_enter().
|
static |
Definition at line 22 of file rpc.c.
Referenced by xid_map_enter(), and xid_map_find().