diff options
author | Andrew Tridgell <tridge@samba.org> | 2008-05-22 13:43:04 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2008-05-22 13:43:04 +1000 |
commit | 8f599b3781dac43c47b064d9bafc89e389b7c0db (patch) | |
tree | a628b4b945ab28f4755e9a369d1cbaca07a1dc59 /source4/torture/gentest_smb2.c | |
parent | 72739ac0d0bdd965264a69a6e796fd412b42d628 (diff) | |
download | samba-8f599b3781dac43c47b064d9bafc89e389b7c0db.tar.gz samba-8f599b3781dac43c47b064d9bafc89e389b7c0db.tar.bz2 samba-8f599b3781dac43c47b064d9bafc89e389b7c0db.zip |
added SMB2 gentest generation of SMB2 echo packets
(This used to be commit 8f7cfa5d2e190ddb74ba859a3f68ec0ed33ae089)
Diffstat (limited to 'source4/torture/gentest_smb2.c')
-rw-r--r-- | source4/torture/gentest_smb2.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source4/torture/gentest_smb2.c b/source4/torture/gentest_smb2.c index fc6dbcbb9a..71101dd672 100644 --- a/source4/torture/gentest_smb2.c +++ b/source4/torture/gentest_smb2.c @@ -1194,6 +1194,18 @@ static bool handler_flush(int instance) return true; } +/* + generate echo operations +*/ +static bool handler_echo(int instance) +{ + NTSTATUS status[NSERVERS]; + + GEN_CALL(smb2_keepalive(tree->session->transport)); + + return true; +} + #if 0 /* @@ -1606,6 +1618,7 @@ static struct { {"WRITE", handler_write}, {"LOCK", handler_lock}, {"FLUSH", handler_flush}, + {"ECHO", handler_echo}, }; |