midltests: print out the alloc_hint for requests and responses
authorStefan Metzmacher <metze@samba.org>
Wed, 29 Sep 2010 07:06:58 +0000 (09:06 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 29 Sep 2010 08:49:40 +0000 (10:49 +0200)
metze

testprogs/win32/midltests/midltests_tcp.c

index 306a23b3779a9b23d097555616d703b9cb3daac8..25c45843893f67f5f432292df04eb44a184cd9bc 100644 (file)
@@ -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);