From f1403072ca7b13cec89c63fb244b42cf69e34346 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Wed, 1 Sep 2004 10:46:12 +0000 Subject: [PATCH] Created smbmsg_t.flags (run-time flags) and defined MSG_FLAG_HASHED to mark a message (in memory) as already hashed with smb_hashmsg(), preventing redundant hashing by smb_addmsghdr(). --- src/smblib/smbdefs.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/smblib/smbdefs.h b/src/smblib/smbdefs.h index cc99263845..b3d1a135bc 100644 --- a/src/smblib/smbdefs.h +++ b/src/smblib/smbdefs.h @@ -559,6 +559,9 @@ typedef struct _PACK { /* Network (type and address) */ } net_t; + /* Valid bits in smbmsg_t.flags */ +#define MSG_FLAG_HASHED (1<<0) /* Message has been hashed with smb_hashmsg() */ + typedef struct { /* Message */ idxrec_t idx; /* Index */ @@ -598,6 +601,7 @@ typedef struct { /* Message */ ulong expiration; /* Message will expire on this day (if >0) */ ulong priority; /* Message priority (0 is lowest) */ ulong cost; /* Cost to download/read */ + ulong flags; /* Various smblib run-time flags (see MSG_FLAG_*) */ } smbmsg_t; -- GitLab