Branch data Line data Source code
1 : : // $Id: XDR.h 6219 2008-10-01 05:39:07Z vern $
2 : : //
3 : : // See the file "COPYING" in the main distribution directory for copyright.
4 : :
5 : : #ifndef xdr_h
6 : : #define xdr_h
7 : :
8 : : #include <sys/types.h>
9 : : #include <netinet/in.h>
10 : :
11 : : #include "util.h"
12 : :
13 : 0 : inline int XDR_aligned(const u_char* buf)
14 : : {
15 : 0 : return (((unsigned long) buf) & 0x3) == 0;
16 : : }
17 : :
18 : : extern uint32 extract_XDR_uint32(const u_char*& buf, int& len);
19 : : extern double extract_XDR_uint64_as_double(const u_char*& buf, int& len);
20 : : extern double extract_XDR_time(const u_char*& buf, int& len);
21 : : extern const u_char* extract_XDR_opaque(const u_char*& buf, int& len,
22 : : int& n, int max_len=8192);
23 : : extern uint32 skip_XDR_opaque_auth(const u_char*& buf, int& len);
24 : :
25 : : #endif
|