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.h
Go to the documentation of this file.
1 /*
2  * rpc.h
3  *
4  * RPC utility routines.
5  *
6  * Copyright (c) 2000 Dug Song <dugsong@monkey.org>
7  *
8  * $Id: rpc.h,v 1.4 2001/03/15 08:33:06 dugsong Exp $
9  */
10 
11 #ifndef RPC_H
12 #define RPC_H
13 
14 #define FRAGLEN(x) (x & 0x7fffffff)
15 #define LASTFRAG(x) (x & (1 << 31))
16 
17 struct xid_map {
18  u_int32_t xid;
19  u_int32_t prog;
20  u_int32_t vers;
21  u_int32_t proc;
22  void *data;
23 };
24 
25 int rpc_decode(u_char *buf, int len, struct rpc_msg *msg);
26 
27 void xid_map_enter(u_int32_t xid, u_int32_t prog, u_int32_t vers,
28  u_int32_t proc, void *data);
29 
30 struct xid_map *xid_map_find(int xid);
31 
32 #endif /* RPC_H */
33 
xid_map
Definition: rpc.h:17
xid_map::vers
u_int32_t vers
Definition: rpc.h:20
rpc_decode
int rpc_decode(u_char *buf, int len, struct rpc_msg *msg)
Definition: rpc.c:70
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)
Definition: rpc.c:30
xid_map_find
struct xid_map * xid_map_find(int xid)
Definition: rpc.c:48
xid_map::prog
u_int32_t prog
Definition: rpc.h:19
buf
Definition: buf.h:14
xid_map::data
void * data
Definition: rpc.h:22
xid_map::proc
u_int32_t proc
Definition: rpc.h:21
xid_map::xid
u_int32_t xid
Definition: rpc.h:18