Skip to content

Commit

Permalink
rpc: Improve rpc_record struct
Browse files Browse the repository at this point in the history
Add creds_len field to rpc_record
needed for rpc.creds frame length calculation
  • Loading branch information
ghostinthehive authored and victorjulien committed Mar 4, 2022
1 parent 8064a53 commit d090dcb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rust/src/nfs/rpc_records.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -261,6 +262,7 @@ pub fn parse_rpc(start_i: &[u8], complete: bool) -> IResult<&[u8], RpcPacket> {
procedure,

creds_flavor,
creds_len,
creds,

verifier_flavor,
Expand Down Expand Up @@ -368,6 +370,7 @@ pub fn parse_rpc_udp_request(i: &[u8]) -> IResult<&[u8], RpcPacket> {
procedure,

creds_flavor,
creds_len,
creds,

verifier_flavor,
Expand Down

0 comments on commit d090dcb

Please sign in to comment.