RPC_GSS_MAX_DATA_LENGTH(3)

✨ RPC_GSS_MAX_DATA_LENGTH(3) ✨

okay bestie, so this one is a lil function from the Library Functions Manual and it's literally called rpc_gss_max_data_length β€” we're doing math about packets today, no cap πŸŽ€


πŸ’– NAME πŸ’–

rpc_gss_max_data_length β€” bestie, we're calculating the maximum data size, that's the whole gig πŸ’…


🌸 SYNOPSIS 🌸

#include <rpc/rpcsec_gss.h>

int
rpc_gss_max_data_length(AUTH *auth, int max_tp_unit_len);

like, that's it. two args. she's lowkey simple πŸ¦‹


🫢 DESCRIPTION 🫢

So the way this works: rpc_gss_max_data_length() figures out the biggest message size that will actually fit into a packet of size max_tp_unit_len, and it does that math based on the current service and the QoP setting you've got going on. it's giving "how much can I actually cram in here without things going sideways" ✨


πŸŽ€ PARAMETERS πŸŽ€

  • auth β€” a handle to a RPCSEC_GSS security context. like your little pass to the secure zone πŸ”
  • max_tp_unit_len β€” the maximum packet size of the underlying transport protocol. basically the container size you're working with πŸ“¦

πŸ’œ RETURN VALUES πŸ’œ

it returns the maximum message size that can be encoded. that's the whole tea β˜•


🌈 AVAILABILITY 🌈

The rpc_gss_max_data_length() function is part of libtirpc. so if you're looking for her, she lives there πŸ’–


πŸ”₯ SEE ALSO πŸ”₯

go read those if you wanna understand the whole friend group, iykyk πŸ‘‘


πŸ‘‘ AUTHORS πŸ‘‘

This manual page was written by Doug Rabson <dfr@FreeBSD.org>. thank you king for the lore 🫢


and that's the whole page, bestie!! this cutie came from the Debian side of things and she's dated January 26, 2010 β€” iconic vintage behavior fr fr, mwah πŸ’…πŸ’–

πŸ“¦ where this page comes from