From: Victor Julien Date: Sat, 21 Jul 2018 14:59:26 +0000 (+0200) Subject: nfs4: for putrootfh set 'mount root' as name X-Git-Tag: suricata-4.1.0-rc2~187 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff518e5c644ff5769a5f69bb4d5c908d7a38da26;p=thirdparty%2Fsuricata.git nfs4: for putrootfh set 'mount root' as name --- diff --git a/rust/src/nfs/nfs4.rs b/rust/src/nfs/nfs4.rs index 34cae4a59f..f3a9a75212 100644 --- a/rust/src/nfs/nfs4.rs +++ b/rust/src/nfs/nfs4.rs @@ -296,6 +296,12 @@ impl NFSState { } } }, + &Nfs4ResponseContent::PutRootFH(s) => { + if s == NFS4_OK && xidmap.file_name.len() == 0 { + xidmap.file_name = b"".to_vec(); + SCLogDebug!("filename {:?}", xidmap.file_name); + } + }, &_ => { }, } } diff --git a/rust/src/nfs/types.rs b/rust/src/nfs/types.rs index e916fdc553..d3f313a39d 100644 --- a/rust/src/nfs/types.rs +++ b/rust/src/nfs/types.rs @@ -321,3 +321,6 @@ pub fn nfs4_procedure_string(procedure: u32) -> String { } }.to_string() } + +pub const NFS4_OK: u32 = 0; +