diff options
author | Volker Lendecke <vl@samba.org> | 2009-01-30 23:29:37 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-01-31 11:09:39 +0100 |
commit | b99859b948f31dbe474b6ce0c6cab601e7e7bc56 (patch) | |
tree | 9588d6aa6931719e08418a8b6f6691369d614e7c /source3/libsmb/clientgen.c | |
parent | ea157f495fec9906736ed3c79a84d9b71ae6ded3 (diff) | |
download | samba-b99859b948f31dbe474b6ce0c6cab601e7e7bc56.tar.gz samba-b99859b948f31dbe474b6ce0c6cab601e7e7bc56.tar.xz samba-b99859b948f31dbe474b6ce0c6cab601e7e7bc56.zip |
Make is_andx_req non-static
Diffstat (limited to 'source3/libsmb/clientgen.c')
-rw-r--r-- | source3/libsmb/clientgen.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index d841bcff8d6..a41aa11f7ad 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -775,3 +775,28 @@ NTSTATUS cli_echo(struct cli_state *cli, uint16_t num_echos, DATA_BLOB data) TALLOC_FREE(frame); return status; } + +/** + * Is the SMB command able to hold an AND_X successor + * @param[in] cmd The SMB command in question + * @retval Can we add a chained request after "cmd"? + */ +bool is_andx_req(uint8_t cmd) +{ + switch (cmd) { + case SMBtconX: + case SMBlockingX: + case SMBopenX: + case SMBreadX: + case SMBwriteX: + case SMBsesssetupX: + case SMBulogoffX: + case SMBntcreateX: + return true; + break; + default: + break; + } + + return false; +} |