mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
lib:util: Move VWV macro to smb_constants.h
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
3f16e97fe3
commit
ad04e5f5f9
@ -128,7 +128,4 @@ it also defines lots of intermediate macros, just ignore those :-)
|
||||
#define RSBVAL(buf,pos,val) SBVAL(buf,pos,BREV(val))
|
||||
#define RSBVALS(buf,pos,val) SBVALS(buf,pos,BREV(val))
|
||||
|
||||
/* macros for accessing SMB protocol elements */
|
||||
#define VWV(vwv) ((vwv)*2)
|
||||
|
||||
#endif /* _BYTEORDER_H */
|
||||
|
@ -59,6 +59,9 @@
|
||||
#define HDR_WCT 32
|
||||
#define HDR_VWV 33
|
||||
|
||||
/* Macros for accessing SMB protocol elements */
|
||||
#define VWV(vwv) ((vwv)*2)
|
||||
|
||||
#define smb_len_nbt(buf) (RIVAL(buf, 0) & 0x1FFFF)
|
||||
#define _smb_setlen_nbt(buf,len) RSIVAL(buf, 0, (len) & 0x1FFFF)
|
||||
#define smb_setlen_nbt(buf, len) do { \
|
||||
|
Loading…
Reference in New Issue
Block a user