mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 12:38:20 +00:00
Initial import of svn+ssh:://svn.icir.org/bro/trunk/bro as of r7088
This commit is contained in:
commit
61757ac78b
1383 changed files with 380824 additions and 0 deletions
25
src/XDR.h
Normal file
25
src/XDR.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
// $Id: XDR.h 6219 2008-10-01 05:39:07Z vern $
|
||||
//
|
||||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#ifndef xdr_h
|
||||
#define xdr_h
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
#include "util.h"
|
||||
|
||||
inline int XDR_aligned(const u_char* buf)
|
||||
{
|
||||
return (((unsigned long) buf) & 0x3) == 0;
|
||||
}
|
||||
|
||||
extern uint32 extract_XDR_uint32(const u_char*& buf, int& len);
|
||||
extern double extract_XDR_uint64_as_double(const u_char*& buf, int& len);
|
||||
extern double extract_XDR_time(const u_char*& buf, int& len);
|
||||
extern const u_char* extract_XDR_opaque(const u_char*& buf, int& len,
|
||||
int& n, int max_len=8192);
|
||||
extern uint32 skip_XDR_opaque_auth(const u_char*& buf, int& len);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue