From: Victor Julien Date: Mon, 19 Mar 2018 19:52:28 +0000 (+0100) Subject: nfs4: create link support X-Git-Tag: suricata-4.1.0-rc1~131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfa60753f9693f903ab8319d7390a4c7bc103c8c;p=thirdparty%2Fsuricata.git nfs4: create link support --- diff --git a/rust/src/nfs/nfs4_records.rs b/rust/src/nfs/nfs4_records.rs index 70538652d6..be26508446 100644 --- a/rust/src/nfs/nfs4_records.rs +++ b/rust/src/nfs/nfs4_records.rs @@ -159,16 +159,19 @@ named!(nfs4_req_setclientid_confirm, pub struct Nfs4RequestCreate<'a> { pub ftype4: u32, pub filename: &'a[u8], + pub link_content: &'a[u8], } named!(nfs4_req_create, do_parse!( ftype4: be_u32 + >> link_content: cond!(ftype4 == 5, nfs4_parse_nfsstring) >> filename: nfs4_parse_nfsstring >> attrs: nfs4_parse_attrs >> ( Nfs4RequestContent::Create(Nfs4RequestCreate { ftype4: ftype4, filename: filename, + link_content: link_content.unwrap_or(&[]), }) )) );