SIVAL(req->out.body, 0x0C, io->in.unknown2);
SIVAL(req->out.body, 0x10, io->in.flags);
SIVAL(req->out.body, 0x14, io->in.flags2);
- smb2_push_handle(req->out.body+0x18, &io->in.handle);
+ smb2_push_handle(req->out.body+0x18, &io->in.file.handle);
smb2_transport_send(req);
ZERO_STRUCT(b);
b.in.max_response_size = 0x10000;
- b.in.handle = io->generic.in.file.handle;
+ b.in.file.handle = io->generic.in.file.handle;
b.in.level = smb2_level;
if (io->generic.level == RAW_FILEINFO_SEC_DESC) {
ZERO_STRUCT(b);
b.in.max_response_size = 0x10000;
- b.in.handle = io->generic.handle;
+ b.in.file.handle = io->generic.handle;
b.in.level = smb2_level;
return smb2_getinfo_send(tree, &b);
}
SIVAL(req->out.body, 0x0C, io->in.flags);
- smb2_push_handle(req->out.body+0x10, &io->in.handle);
+ smb2_push_handle(req->out.body+0x10, &io->in.file.handle);
smb2_transport_send(req);
ZERO_STRUCT(b);
b.in.level = smb2_level;
- b.in.handle = io->generic.in.file.handle;
+ b.in.file.handle = io->generic.in.file.handle;
if (!smb_raw_setfileinfo_passthru(tree, io->generic.level, io, &b.in.blob)) {
return NULL;
}
uint32_t unknown2;
uint32_t flags; /* level specific */
uint32_t flags2; /* used by all_eas level */
- struct smb2_handle handle;
+ union smb_handle file;
} in;
struct {
struct {
uint16_t level;
uint32_t flags;
- struct smb2_handle handle;
+ union smb_handle file;
DATA_BLOB blob;
} in;
};
for (i=0;i<0x100;i++) {
io.in.level = (i<<8) | c;
- io.in.handle = fhandle;
+ io.in.file.handle = fhandle;
status = smb2_getinfo(tree, mem_ctx, &io);
if (!NT_STATUS_EQUAL(status, NT_STATUS_INVALID_INFO_CLASS) &&
!NT_STATUS_EQUAL(status, NT_STATUS_INVALID_PARAMETER) &&
dump_data(1, io.out.blob.data, io.out.blob.length);
}
- io.in.handle = dhandle;
+ io.in.file.handle = dhandle;
status = smb2_getinfo(tree, mem_ctx, &io);
if (!NT_STATUS_EQUAL(status, NT_STATUS_INVALID_INFO_CLASS) &&
!NT_STATUS_EQUAL(status, NT_STATUS_INVALID_PARAMETER) &&
for (c=1;c<5;c++) {
for (i=0;i<0x100;i++) {
io.in.level = (i<<8) | c;
- io.in.handle = handle;
+ io.in.file.handle = handle;
status = smb2_setinfo(tree, &io);
if (!NT_STATUS_EQUAL(status, NT_STATUS_INVALID_INFO_CLASS) &&
!NT_STATUS_EQUAL(status, NT_STATUS_NOT_SUPPORTED)) {