diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-05-14 05:53:26 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:52:23 -0500 |
commit | 8861c4a68ed23af2388103f2ca793f6833b4b58b (patch) | |
tree | 5a1b6ed2b7d74fb8f152a218503f60b4a602c5ad /source4/librpc | |
parent | 0f6b62072e673887d354bccd7a15d4188b5c4fca (diff) | |
download | samba-8861c4a68ed23af2388103f2ca793f6833b4b58b.tar.gz samba-8861c4a68ed23af2388103f2ca793f6833b4b58b.tar.bz2 samba-8861c4a68ed23af2388103f2ca793f6833b4b58b.zip |
r22838: Add in an explority test for what QFSINFO operations are valid on IPC$
It seems most opertaions are supported, but that the values are not
consistant. I think these are very much hand-hacked stubs, which is
what they will be on Samba4 too.
I'll need to add some more 'don't fail for...' hacks before this
passes against Win2k3.
Andrew Bartlett
(This used to be commit dcb858d0c716b23be6c5d36b4aa6f155582ada63)
Diffstat (limited to 'source4/librpc')
-rw-r--r-- | source4/librpc/rpc/dcerpc_smb.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source4/librpc/rpc/dcerpc_smb.c b/source4/librpc/rpc/dcerpc_smb.c index 1eead06a48..7f0bcf0485 100644 --- a/source4/librpc/rpc/dcerpc_smb.c +++ b/source4/librpc/rpc/dcerpc_smb.c @@ -561,3 +561,18 @@ struct smbcli_tree *dcerpc_smb_tree(struct dcerpc_connection *c) return smb->tree; } + +/* + return the SMB fnum used for a dcerpc over SMB pipe (hack for torture operations) +*/ +uint16_t dcerpc_smb_fnum(struct dcerpc_connection *c) +{ + struct smb_private *smb; + + if (c->transport.transport != NCACN_NP) return 0; + + smb = talloc_get_type(c->transport.private, struct smb_private); + if (!smb) return 0; + + return smb->fnum; +} |