switch (hdr->ptype) {
case 0: /* request */
- printf("%s:%s: ptype[request] flen[%d] plen[%d] ahint[%d]\n\n",
- ctx, direction, hdr->frag_length,
+ printf("%s:%s: ptype[request] flen[%d] call[%d] plen[%d] ahint[%d]\n\n",
+ ctx, direction, hdr->frag_length, hdr->call_id,
len - 24, *(DWORD *)(&buf[0x10]));
dump_data(buf + 24, len - 24);
printf("\n");
break;
case 2: /* response */
- printf("\n%s:%s: ptype[response] flen[%d] plen[%d] ahint[%d]\n\n",
- ctx, direction, hdr->frag_length,
+ printf("\n%s:%s: ptype[response] flen[%d] call[%d] plen[%d] ahint[%d]\n\n",
+ ctx, direction, hdr->frag_length, hdr->call_id,
len - 24, *(DWORD *)(&buf[0x10]));
dump_data(buf + 24, len - 24);
printf("\n");
fflush(stdout);
break;
+ case 3: /* fault */
+ printf("%s:%s: ptype[fault] flen[%d] call[%d] plen[%d]\n\n",
+ ctx, direction, hdr->ptype, hdr->frag_length, hdr->call_id,
+ len - 24);
+ dump_data(buf + 24, len - 24);
+ printf("\n");
+ fflush(stdout);
+ break;
+
case 11: /* bind */
#if 0
printf("%s:%s: ptype[bind] flen[%d] call[%d] contexts[%d]\n\n"