OpenVAS Scanner
7.0.1~git
|
Unix SMB/CIFS implementation. SMB Byte handling. More...
Go to the source code of this file.
Macros | |
#define | CAREFUL_ALIGNMENT 1 |
#define | CVAL(buf, pos) ((unsigned) (((const unsigned char *) (buf))[pos])) |
#define | CVAL_NC(buf, pos) (((unsigned char *) (buf))[pos]) /* Non-const version of CVAL */ |
#define | PVAL(buf, pos) (CVAL (buf, pos)) |
#define | SCVAL(buf, pos, val) (CVAL_NC (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) |
#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 | RSVALS(buf, pos) SREV (SVALS (buf, pos)) |
#define | RIVAL(buf, pos) IREV (IVAL (buf, pos)) |
#define | RIVALS(buf, pos) IREV (IVALS (buf, pos)) |
#define | RSSVAL(buf, pos, val) SSVAL (buf, pos, SREV (val)) |
#define | RSSVALS(buf, pos, val) SSVALS (buf, pos, SREV (val)) |
#define | RSIVAL(buf, pos, val) SIVAL (buf, pos, IREV (val)) |
#define | RSIVALS(buf, pos, val) SIVALS (buf, pos, IREV (val)) |
#define | ALIGN4(p, base) ((p) + ((4 - (PTR_DIFF ((p), (base)) & 3)) & 3)) |
#define | ALIGN2(p, base) ((p) + ((2 - (PTR_DIFF ((p), (base)) & 1)) & 1)) |
Unix SMB/CIFS implementation. SMB Byte handling.
Definition in file byteorder.h.
#define ALIGN2 | ( | p, | |
base | |||
) | ((p) + ((2 - (PTR_DIFF ((p), (base)) & 1)) & 1)) |
Definition at line 180 of file byteorder.h.
#define ALIGN4 | ( | p, | |
base | |||
) | ((p) + ((4 - (PTR_DIFF ((p), (base)) & 3)) & 3)) |
Definition at line 179 of file byteorder.h.
#define CAREFUL_ALIGNMENT 1 |
Definition at line 109 of file byteorder.h.
#define CVAL | ( | buf, | |
pos | |||
) | ((unsigned) (((const unsigned char *) (buf))[pos])) |
Definition at line 112 of file byteorder.h.
#define CVAL_NC | ( | buf, | |
pos | |||
) | (((unsigned char *) (buf))[pos]) /* Non-const version of CVAL */ |
Definition at line 113 of file byteorder.h.
Definition at line 167 of file byteorder.h.
Definition at line 121 of file byteorder.h.
Referenced by do_reseed_ntlmssp().
#define IVALS | ( | buf, | |
pos | |||
) | ((int32) IVAL (buf, pos)) |
Definition at line 128 of file byteorder.h.
#define PVAL | ( | buf, | |
pos | |||
) | (CVAL (buf, pos)) |
Definition at line 115 of file byteorder.h.
Definition at line 171 of file byteorder.h.
Definition at line 172 of file byteorder.h.
Definition at line 175 of file byteorder.h.
Definition at line 176 of file byteorder.h.
Definition at line 173 of file byteorder.h.
Definition at line 174 of file byteorder.h.
Definition at line 169 of file byteorder.h.
Definition at line 170 of file byteorder.h.
Definition at line 116 of file byteorder.h.
Definition at line 130 of file byteorder.h.
Referenced by do_reseed_ntlmssp(), nasl_dec2str(), NTLMv2_generate_client_data_ntlmssp(), put_long_date_timespec_ntlmssp(), and simple_packet_signature_ntlmssp().
Definition at line 132 of file byteorder.h.
#define SIVALX | ( | buf, | |
pos, | |||
val | |||
) | (SSVALX (buf, pos, val & 0xFFFF), SSVALX (buf, pos + 2, val >> 16)) |
Definition at line 125 of file byteorder.h.
#define SREV | ( | x | ) | ((((x) &0xFF) << 8) | (((x) >> 8) & 0xFF)) |
Definition at line 166 of file byteorder.h.
Definition at line 129 of file byteorder.h.
Referenced by init_valid_table_ntlmssp().
Definition at line 131 of file byteorder.h.
#define SSVALX | ( | buf, | |
pos, | |||
val | |||
) |
Definition at line 122 of file byteorder.h.
Definition at line 120 of file byteorder.h.
Definition at line 127 of file byteorder.h.