RPC_GSS_SVC_MAX_DATA_LENGTH(3t)

โœจ NAME โœจ

okay so this is rpc_gss_svc_max_data_length โ€” and bestie, the whole entire job of this function is calculating maximum data size ๐Ÿ’– that's it, that's the gig, she does the math so you don't have to ๐Ÿงฎโœจ

(fr fr, it's a Library Functions Manual page, section 3, so it's a library call โ€” not a command you type in your shell, iykyk ๐Ÿซถ)


๐ŸŒธ SYNOPSIS ๐ŸŒธ

#include <rpc/rpcsec_gss.h>

int
rpc_gss_svc_max_data_length(struct svc_req *req, int max_tp_unit_len);

like, that's the whole signature. she's a little one. she's an icon ๐Ÿ‘‘


๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

okay so here's the vibe ๐Ÿ’…

rpc_gss_svc_max_data_length() figures out the maximum message size that will fit into a packet of size max_tp_unit_len, given the current service and QoP setting.

that's literally it. you tell her how big the packet can be, she takes into account what service and QoP you've got going on right now, and she hands you back the biggest message that's gonna squeeze in there without spilling out the sides ๐ŸŽ€ no cap, that's the whole function.


๐Ÿ’œ PARAMETERS ๐Ÿ’œ

  • req โ€” An RPC request ๐Ÿซถ like, the actual request you're working with.
  • max_tp_unit_len โ€” Maximum packet size of the underlying transport protocol ๐Ÿ“ฆ that's your ceiling, your limit, your "this is how much room we have to work with."

โญ RETURN VALUES โญ

she returns the maximum message size that can be encoded โœจ

that's it. that's the return. no sneaky extra behaviour, just the number you asked for ๐Ÿ’–


๐ŸŒˆ AVAILABILITY ๐ŸŒˆ

rpc_gss_svc_max_data_length() is part of libtirpc ๐Ÿ‘‘ so if you've got libtirpc, you've got her.


๐ŸŽ€ SEE ALSO ๐ŸŽ€

go read these next bestie, they're the friend group:


๐Ÿ’… AUTHORS ๐Ÿ’…

This manual page was written by Doug Rabson <dfr@FreeBSD.org>. thank you Doug, we appreciate you fr fr ๐Ÿ™๐Ÿ’–


okay bestie that's the whole page, we ate and left no crumbs ๐Ÿ“โœจ this was Debian's page from January 26, 2010, filed under RPC_GSS_SVC_MAX_DATA_LENGTH(3) โ€” and yes the title says RPC_GSS_SVC_MAX_DATA_LEN(3) up top, that's just the short version, don't stress it ๐Ÿ’€ mwah, go compute your max message size, main character ๐Ÿซถ๐Ÿ‘‘

๐Ÿ“ฆ where this page comes from