
Go to the source code of this file.
Macros | |
#define | CAREFUL_ALIGNMENT 1 |
#define | CVAL(buf, pos) (((unsigned char *)(buf))[pos]) |
#define | PVAL(buf, pos) ((unsigned)CVAL(buf,pos)) |
#define | SCVAL(buf, pos, val) (CVAL(buf,pos) = (val)) |
#define | SVAL(buf, pos) (PVAL(buf,pos)|PVAL(buf,(pos)+1)<<8) |
#define | IVAL(buf, pos) (SVAL(buf,pos)|SVAL(buf,(pos)+2)<<16) |
#define | SSVALX(buf, pos, val) (CVAL(buf,pos)=(val)&0xFF,CVAL(buf,pos+1)=(val)>>8) |
#define | SIVALX(buf, pos, val) (SSVALX(buf,pos,val&0xFFFF),SSVALX(buf,pos+2,val>>16)) |
#define | SVALS(buf, pos) ((int16)SVAL(buf,pos)) |
#define | IVALS(buf, pos) ((int32)IVAL(buf,pos)) |
#define | SSVAL(buf, pos, val) SSVALX((buf),(pos),((uint16)(val))) |
#define | SIVAL(buf, pos, val) SIVALX((buf),(pos),((uint32)(val))) |
#define | SSVALS(buf, pos, val) SSVALX((buf),(pos),((int16)(val))) |
#define | SIVALS(buf, pos, val) SIVALX((buf),(pos),((int32)(val))) |
#define | SREV(x) ((((x)&0xFF)<<8) | (((x)>>8)&0xFF)) |
#define | IREV(x) ((SREV(x)<<16) | (SREV((x)>>16))) |
#define | RSVAL(buf, pos) SREV(SVAL(buf,pos)) |
#define | RIVAL(buf, pos) IREV(IVAL(buf,pos)) |
#define | RSSVAL(buf, pos, val) SSVAL(buf,pos,SREV(val)) |
#define | RSIVAL(buf, pos, val) SIVAL(buf,pos,IREV(val)) |
Macro Definition Documentation
◆ CAREFUL_ALIGNMENT
#define CAREFUL_ALIGNMENT 1 |
Definition at line 46 of file byteorder.h.
◆ CVAL
Definition at line 49 of file byteorder.h.
Referenced by RFCNB_Print_Pkt(), RFCNB_Session_Req(), SMB_Check_Dir(), SMB_Close(), SMB_Create(), SMB_Create_Dir(), SMB_Delete(), SMB_Delete_Dir(), SMB_Logon_And_TCon(), SMB_Logon_Server(), SMB_Logon_TCon_Open(), SMB_Negotiate(), SMB_Open(), SMB_Read(), SMB_Search(), SMB_TreeConnect(), SMB_TreeDisconnect(), SMB_Write(), SMBapi_NetSetUserInfo(), and SMBapi_NetUserPasswordSet().
◆ IREV
Definition at line 83 of file byteorder.h.
◆ IVAL
Definition at line 55 of file byteorder.h.
Referenced by SMB_Check_Dir(), SMB_Close(), SMB_Create(), SMB_Create_Dir(), SMB_Delete(), SMB_Delete_Dir(), SMB_Logon_And_TCon(), SMB_Logon_Server(), SMB_Logon_TCon_Open(), SMB_Negotiate(), SMB_Open(), SMB_Read(), SMB_Search(), SMB_TreeConnect(), SMB_TreeDisconnect(), SMB_Write(), SMBapi_NetSetUserInfo(), and SMBapi_NetUserPasswordSet().
◆ IVALS
Definition at line 59 of file byteorder.h.
◆ PVAL
Definition at line 50 of file byteorder.h.
◆ RIVAL
◆ RSIVAL
Definition at line 88 of file byteorder.h.
◆ RSSVAL
Definition at line 87 of file byteorder.h.
◆ RSVAL
◆ SCVAL
Definition at line 51 of file byteorder.h.
◆ SIVAL
Definition at line 61 of file byteorder.h.
Referenced by SMB_Check_Dir(), SMB_Close(), SMB_Create(), SMB_Create_Dir(), SMB_Delete(), SMB_Delete_Dir(), SMB_Logon_And_TCon(), SMB_Logon_Server(), SMB_Logon_TCon_Open(), SMB_Negotiate(), SMB_Open(), SMB_Read(), SMB_Search(), SMB_TreeConnect(), SMB_TreeDisconnect(), SMB_Write(), SMBapi_NetSetUserInfo(), and SMBapi_NetUserPasswordSet().
◆ SIVALS
Definition at line 63 of file byteorder.h.
◆ SIVALX
Definition at line 57 of file byteorder.h.
◆ SREV
#define SREV | ( | x | ) | ((((x)&0xFF)<<8) | (((x)>>8)&0xFF)) |
Definition at line 82 of file byteorder.h.
◆ SSVAL
Definition at line 60 of file byteorder.h.
Referenced by _my_mbstowcs(), SMB_Check_Dir(), SMB_Close(), SMB_Create(), SMB_Create_Dir(), SMB_Delete(), SMB_Delete_Dir(), SMB_Logon_And_TCon(), SMB_Logon_Server(), SMB_Logon_TCon_Open(), SMB_Negotiate(), SMB_Open(), SMB_Read(), SMB_Search(), SMB_TreeConnect(), SMB_TreeDisconnect(), SMB_Write(), SMBapi_NetSetUserInfo(), and SMBapi_NetUserPasswordSet().
◆ SSVALS
Definition at line 62 of file byteorder.h.
◆ SSVALX
Definition at line 56 of file byteorder.h.
◆ SVAL
Definition at line 54 of file byteorder.h.
Referenced by RFCNB_Session_Req(), SMB_Check_Dir(), SMB_Close(), SMB_Create(), SMB_Create_Dir(), SMB_Delete(), SMB_Delete_Dir(), SMB_Logon_And_TCon(), SMB_Logon_Server(), SMB_Logon_TCon_Open(), SMB_Negotiate(), SMB_Open(), SMB_Read(), SMB_Search(), SMB_TreeConnect(), SMB_TreeDisconnect(), SMB_Write(), SMBapi_NetSetUserInfo(), and SMBapi_NetUserPasswordSet().