File: rpc.h

package info (click to toggle)
dsniff 2.4b1+debian-29
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,020 kB
  • sloc: ansic: 10,803; sh: 152; makefile: 126
file content (33 lines) | stat: -rw-r--r-- 595 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * rpc.h
 *
 * RPC utility routines.
 *
 * Copyright (c) 2000 Dug Song <dugsong@monkey.org>
 *
 * $Id: rpc.h,v 1.4 2001/03/15 08:33:06 dugsong Exp $
 */

#ifndef RPC_H
#define RPC_H

#define FRAGLEN(x)	(x & 0x7fffffff)
#define LASTFRAG(x)	(x & (1 << 31))

struct xid_map {
	u_int32_t		xid;
	u_int32_t		prog;
	u_int32_t		vers;
	u_int32_t		proc;
	void	       *data;
};

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

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);

#endif /* RPC_H */