Skip to content

Commit

Permalink
NFS: Add a NFSv4 test
Browse files Browse the repository at this point in the history
A test for NFSv4 support.

Signed-off-by: Seiichi Ikarashi <s.ikarashi@fujitsu.com>
  • Loading branch information
sikarash committed Jan 5, 2024
1 parent 64ebd60 commit 2d20679
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/TESTLIST
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,9 @@ nfs-seg-fault-1 nfs-seg-fault-1.pcapng nfs-seg-fault-1.out
# NFS invalid
nfs-cannot-pad-32-bit nfs-cannot-pad-32-bit.pcap nfs-cannot-pad-32-bit.out

# NFSv4 support
nfs-v4 nfs-v4.pcap nfs-v4.out

# DNS infinite loop tests
#
# See http://marc.info/?l=tcpdump-workers&m=95552439022555
Expand Down
6 changes: 6 additions & 0 deletions tests/nfs-v4.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
1 08:48:53.854625 IP 192.168.200.177.671 > 192.168.200.1.2049: Flags [P.], seq 1022539785:1022539969, ack 556520858, win 1592, options [nop,nop,TS val 1549792688 ecr 1201363416], length 184: NFS request xid 1209063269 180 v4 compound
2 08:48:53.855103 IP 192.168.200.1.2049 > 192.168.200.177.671: Flags [P.], seq 1:173, ack 184, win 1064, options [nop,nop,TS val 1201382193 ecr 1549792688], length 172: NFS reply xid 1209063269 reply ok 168 v4 compound
3 08:48:53.855178 IP 192.168.200.177.671 > 192.168.200.1.2049: Flags [.], ack 173, win 1615, options [nop,nop,TS val 1549792689 ecr 1201382193], length 0
4 08:48:53.855490 IP 192.168.200.177.671 > 192.168.200.1.2049: Flags [P.], seq 184:376, ack 173, win 1615, options [nop,nop,TS val 1549792689 ecr 1201382193], length 192: NFS request xid 1225840485 188 v4 compound
5 08:48:53.855747 IP 192.168.200.1.2049 > 192.168.200.177.671: Flags [P.], seq 173:273, ack 376, win 1078, options [nop,nop,TS val 1201382194 ecr 1549792689], length 100: NFS reply xid 1225840485 reply ok 96 v4 compound ERROR: No such file or directory
6 08:48:53.896607 IP 192.168.200.177.671 > 192.168.200.1.2049: Flags [.], ack 273, win 1615, options [nop,nop,TS val 1549792730 ecr 1201382194], length 0
Binary file added tests/nfs-v4.pcap
Binary file not shown.

0 comments on commit 2d20679

Please sign in to comment.