]> The Tcpdump Group git mirrors - tcpdump/commitdiff
add test for nfs write verf cookie
authorViral Mehta <[email protected]>
Fri, 24 Aug 2018 09:14:51 +0000 (05:14 -0400)
committerDenis Ovsienko <[email protected]>
Wed, 5 Sep 2018 09:55:08 +0000 (10:55 +0100)
test results:
[vmehta@centos72_base tcpdump]# make check | grep nfs
    unaligned-nfs-1                    : passed
    nfs-attr-oobr                      : passed
    hoobr_nfs_printfh                  : passed
    hoobr_nfs_xid_map_enter            : passed
    nfs-seg-fault-1                    : passed
    nfs-write-verf-cookie              : passed <- new test

tests/nfs-write-verf-cookie.out [new file with mode: 0644]
tests/nfs-write-verf-cookie.pcap [new file with mode: 0644]

diff --git a/tests/nfs-write-verf-cookie.out b/tests/nfs-write-verf-cookie.out
new file mode 100644 (file)
index 0000000..30ee491
--- /dev/null
@@ -0,0 +1,4 @@
+    1  08:54:32.729464 IP (tos 0x0, ttl 64, id 57143, offset 0, flags [DF], proto TCP (6), length 200)
+    10.207.74.149.993 > 10.98.159.117.2049: Flags [P.], cksum 0xfff5 (incorrect -> 0x430b), seq 1468263659:1468263807, ack 2941950012, win 279, options [nop,nop,TS val 1641695579 ecr 608564722], length 148: NFS request xid 90477929 144 write fh Unknown/F0C862C6000010000000000014AB0200C6DD760758AA7A5B0000000000000000 3 (3) bytes @ 0 <filesync>
+    2  08:54:32.731527 IP (tos 0x0, ttl 59, id 38294, offset 0, flags [DF], proto TCP (6), length 216)
+    10.98.159.117.2049 > 10.207.74.149.993: Flags [P.], cksum 0x381a (correct), seq 1:165, ack 148, win 29146, options [nop,nop,TS val 608564725 ecr 1641695579], length 164: NFS reply xid 90477929 reply ok 160 write PRE: sz 0 mtime 1535100894.465310536 ctime 1535100894.464014342 POST: REG 100644 ids 65534/65534 sz 3 nlink 1 rdev 0/0 fsid 5b7aaa5800000000 fileid 2ab14 a/m/ctime 1535100894.466424000 1535100894.466424000 1535100894.466424000 3 bytes <filesync> verf 851b4
diff --git a/tests/nfs-write-verf-cookie.pcap b/tests/nfs-write-verf-cookie.pcap
new file mode 100644 (file)
index 0000000..11b6360
Binary files /dev/null and b/tests/nfs-write-verf-cookie.pcap differ