Skip to content
Commit 8af345f5 authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

svcrpc: track rpc data length separately from sk_tcplen



Keep a separate field, sk_datalen, that tracks only the data contained
in a fragment, not including the fragment header.

For now, this is always just max(0, sk_tcplen - 4), but after we allow
multiple fragments sk_datalen will accumulate the total rpc data size
while sk_tcplen only tracks progress receiving the current fragment.

Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 6a72ae2e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment