summaryrefslogtreecommitdiff
path: root/print-tcp.c
diff options
context:
space:
mode:
authorDenis Ovsienko <infrastation@yandex.ru>2013-11-07 11:07:13 +0400
committerDenis Ovsienko <infrastation@yandex.ru>2013-11-07 11:07:13 +0400
commit29d83dbb61be640899d969357f2a8e1c3e02c7ee (patch)
tree7ef21184e3958e4187216aa900357784831d99ba /print-tcp.c
parentf3051bcbba8cf3e5e0f0fdae1bbbd9a2cfce3b6e (diff)
downloadtcpdump-29d83dbb61be640899d969357f2a8e1c3e02c7ee.tar.gz
print-tcp: add some NFS printing finish
Add printing of direction and restore printing of the transaction ID, which print_nfsaddr() used to output in a way.
Diffstat (limited to 'print-tcp.c')
-rw-r--r--print-tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-tcp.c b/print-tcp.c
index 010dcf54..f8331d38 100644
--- a/print-tcp.c
+++ b/print-tcp.c
@@ -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;
}