Skip to content
Snippets Groups Projects
Commit f1403072 authored by rswindell's avatar rswindell
Browse files

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().
parent 50926f56
No related branches found
No related tags found
No related merge requests found
...@@ -559,6 +559,9 @@ typedef struct _PACK { /* Network (type and address) */ ...@@ -559,6 +559,9 @@ typedef struct _PACK { /* Network (type and address) */
} net_t; } net_t;
/* Valid bits in smbmsg_t.flags */
#define MSG_FLAG_HASHED (1<<0) /* Message has been hashed with smb_hashmsg() */
typedef struct { /* Message */ typedef struct { /* Message */
idxrec_t idx; /* Index */ idxrec_t idx; /* Index */
...@@ -598,6 +601,7 @@ typedef struct { /* Message */ ...@@ -598,6 +601,7 @@ typedef struct { /* Message */
ulong expiration; /* Message will expire on this day (if >0) */ ulong expiration; /* Message will expire on this day (if >0) */
ulong priority; /* Message priority (0 is lowest) */ ulong priority; /* Message priority (0 is lowest) */
ulong cost; /* Cost to download/read */ ulong cost; /* Cost to download/read */
ulong flags; /* Various smblib run-time flags (see MSG_FLAG_*) */
} smbmsg_t; } smbmsg_t;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment