git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72739ac
)
added SMB2 gentest generation of SMB2 echo packets
author
Andrew Tridgell
<tridge@samba.org>
Thu, 22 May 2008 03:43:04 +0000
(13:43 +1000)
committer
Andrew Tridgell
<tridge@samba.org>
Thu, 22 May 2008 03:43:04 +0000
(13:43 +1000)
(This used to be commit
8f7cfa5d2e190ddb74ba859a3f68ec0ed33ae089
)
source4/torture/gentest_smb2.c
patch
|
blob
|
history
diff --git
a/source4/torture/gentest_smb2.c
b/source4/torture/gentest_smb2.c
index fc6dbcbb9ae0d7339bc6d43d1db6900f1f285b8f..71101dd672ec0f02d9356508d1c6fe19ed4b5fda 100644
(file)
--- 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},
};