From: Sam Muhammed Date: Mon, 28 Feb 2022 11:44:45 +0000 (+0200) Subject: rpc: Improve rpc_record struct X-Git-Tag: suricata-7.0.0-beta1~810 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d090dcbce925bae00ea87646baa7c77cffffcf12;p=thirdparty%2Fsuricata.git rpc: Improve rpc_record struct Add creds_len field to rpc_record needed for rpc.creds frame length calculation --- diff --git a/rust/src/nfs/rpc_records.rs b/rust/src/nfs/rpc_records.rs index 8c775536b9..d2d89f4229 100644 --- a/rust/src/nfs/rpc_records.rs +++ b/rust/src/nfs/rpc_records.rs @@ -197,6 +197,7 @@ pub struct RpcPacket<'a> { pub procedure: u32, pub creds_flavor: u32, + pub creds_len: u32, pub creds: RpcRequestCreds<'a>, pub verifier_flavor: u32, @@ -261,6 +262,7 @@ pub fn parse_rpc(start_i: &[u8], complete: bool) -> IResult<&[u8], RpcPacket> { procedure, creds_flavor, + creds_len, creds, verifier_flavor, @@ -368,6 +370,7 @@ pub fn parse_rpc_udp_request(i: &[u8]) -> IResult<&[u8], RpcPacket> { procedure, creds_flavor, + creds_len, creds, verifier_flavor,