From 4ef8d937a21601b62ec0aa341d5296594e48b8a8 Mon Sep 17 00:00:00 2001 From: Sam Muhammed Date: Sat, 22 Jan 2022 16:30:58 +0200 Subject: [PATCH] nfs3: add test for readdirplus records Required for nfs3_records unittests 4e2edd44aa08f08286001701ec0860c6638625d5 Task #4866 --- tests/nfs3-readdirplus/README.md | 4 ++++ tests/nfs3-readdirplus/input.pcap | Bin 0 -> 816 bytes tests/nfs3-readdirplus/test.yaml | 33 ++++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 tests/nfs3-readdirplus/README.md create mode 100644 tests/nfs3-readdirplus/input.pcap create mode 100644 tests/nfs3-readdirplus/test.yaml diff --git a/tests/nfs3-readdirplus/README.md b/tests/nfs3-readdirplus/README.md new file mode 100644 index 000000000..59d3a44e8 --- /dev/null +++ b/tests/nfs3-readdirplus/README.md @@ -0,0 +1,4 @@ +PCAP +==== + +PCAP by Victor Julien diff --git a/tests/nfs3-readdirplus/input.pcap b/tests/nfs3-readdirplus/input.pcap new file mode 100644 index 0000000000000000000000000000000000000000..2f52dc5173370858f31256ea1606911bda450d41 GIT binary patch literal 816 zc-p&ic+)~A1{MYcU}0bcl2%cck-vr57~TQdAk4rq``FxBZ#G`{nb*O=;L5=8Ajryr z!GSHM^}q^7HXvqVUd_SyE9aM(uS!IDg9PK_D zAO;%E&IS2#hOxYo~UQgaU{!z7s*(s+FSXU}B708BtE0QUWQQ8orH zAQyxo{)U7B$oGtYPA>-e{^fs=&p{!;!N|NCFd1S2peydW_F Za~~*0FhZTjQ2+n`e;S4jBZ(=65de1(n=JqU literal 0 Hc-jL100001 diff --git a/tests/nfs3-readdirplus/test.yaml b/tests/nfs3-readdirplus/test.yaml new file mode 100644 index 000000000..dbaefbd2b --- /dev/null +++ b/tests/nfs3-readdirplus/test.yaml @@ -0,0 +1,33 @@ +requires: + min-version: 6.0 + files: + - rust/src/nfs/nfs3.rs + +args: +- -k none +- --set stream.midstream=true +- --set app-layer.protocols.nfs.enabled=yes + +checks: + - filter: + count: 1 + match: + event_type: nfs + dest_ip: 192.168.1.6 + dest_port: 939 + nfs.version: 3 + nfs.status: OK + nfs.procedure: READDIRPLUS + nfs.type: response + nfs.filename: "" + nfs.hhash: 23ea69b6 + nfs.id: 1 + nfs.file_tx: false + proto: TCP + src_ip: 192.168.1.2 + src_port: 2049 + rpc.xid: 3391488638 + rpc.status: ACCEPTED + rpc.auth_type: UNIX + rpc.creds.uid: 1000 + rpc.creds.gid: 1000 -- 2.47.2