summaryrefslogtreecommitdiff
path: root/testprogs
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-09-29 09:06:58 +0200
committerStefan Metzmacher <metze@samba.org>2010-09-29 10:49:40 +0200
commit6c0a4b6477df872d03696faec1b786ad3352a7ca (patch)
tree85112606bf62770851e9fdd4a825d7430977dcb5 /testprogs
parent25e19287f01bec1390ef91ce2f617d78175531be (diff)
downloadsamba-6c0a4b6477df872d03696faec1b786ad3352a7ca.tar.gz
samba-6c0a4b6477df872d03696faec1b786ad3352a7ca.tar.bz2
samba-6c0a4b6477df872d03696faec1b786ad3352a7ca.zip
midltests: print out the alloc_hint for requests and responses
metze
Diffstat (limited to 'testprogs')
-rw-r--r--testprogs/win32/midltests/midltests_tcp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/testprogs/win32/midltests/midltests_tcp.c b/testprogs/win32/midltests/midltests_tcp.c
index 306a23b377..25c4584389 100644
--- a/testprogs/win32/midltests/midltests_tcp.c
+++ b/testprogs/win32/midltests/midltests_tcp.c
@@ -101,18 +101,18 @@ static void dump_packet(const char *ctx, const char *direction,
switch (hdr->ptype) {
case 0: /* request */
- printf("%s:%s: ptype[request] flen[%d] plen[%d]\n\n",
+ printf("%s:%s: ptype[request] flen[%d] plen[%d] ahint[%d]\n\n",
ctx, direction, hdr->frag_length,
- len - 24);
+ len - 24, *(DWORD *)(&buf[0x10]));
dump_data(buf + 24, len - 24);
printf("\n");
fflush(stdout);
break;
case 2: /* response */
- printf("\n%s:%s: ptype[response] flen[%d] plen[%d]\n\n",
+ printf("\n%s:%s: ptype[response] flen[%d] plen[%d] ahint[%d]\n\n",
ctx, direction, hdr->frag_length,
- len - 24);
+ len - 24, *(DWORD *)(&buf[0x10]));
dump_data(buf + 24, len - 24);
printf("\n");
fflush(stdout);