]> The Tcpdump Group git mirrors - tcpdump/commitdiff
print-tcp: add some NFS printing finish
authorDenis Ovsienko <[email protected]>
Thu, 7 Nov 2013 07:07:13 +0000 (11:07 +0400)
committerDenis Ovsienko <[email protected]>
Thu, 7 Nov 2013 07:07:13 +0000 (11:07 +0400)
Add printing of direction and restore printing of the transaction ID,
which print_nfsaddr() used to output in a way.

print-tcp.c

index 010dcf54028e2c61f84852acefd99566314d7880..f8331d389152907e7ca41d1316032a5b1f66c3ac 100644 (file)
@@ -722,12 +722,12 @@ tcp_print(register const u_char *bp, register u_int length,
                 if (TTEST(rp->rm_direction)) {
                         direction = (enum sunrpc_msg_type)EXTRACT_32BITS(&rp->rm_direction);
                         if (dport == NFS_PORT && direction == SUNRPC_CALL) {
-                                (void)printf(" | ");
+                                (void)printf(": NFS request xid %u ", EXTRACT_32BITS(&rp->rm_xid));
                                 nfsreq_print_noaddr((u_char *)rp, fraglen, (u_char *)ip);
                                 return;
                         }
                         if (sport == NFS_PORT && direction == SUNRPC_REPLY) {
-                                (void)printf(" | ");
+                                (void)printf(": NFS reply xid %u ", EXTRACT_32BITS(&rp->rm_xid));
                                 nfsreply_print_noaddr((u_char *)rp, fraglen, (u_char *)ip);
                                 return;
                         }