RPC\_GSS\_SVC\_MAX\_DATA\_LENGTH(3) Library Functions Manual RPC\_GSS\_SVC\_MAX\_DATA\_LENGTH(3)

# [NAME](#NAME)

`rpc_gss_svc_max_data_length` — calculate maximum data size

# [SYNOPSIS](#SYNOPSIS)

`#include <rpc/rpcsec_gss.h>`

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

# [DESCRIPTION](#DESCRIPTION)

Calculate the maximum message size that will fit into a packet of size `max_tp_unit_len`, given the current service and QoP setting.

# [PARAMETERS](#PARAMETERS)

req

An RPC request

max\_tp\_unit\_len

Maximum packet size of the underlying transport protocol

# [RETURN VALUES](#RETURN_VALUES)

The maximum message size that can be encoded

# [AVAILABILITY](#AVAILABILITY)

The [`rpc_gss_svc_max_data_length`](#rpc_gss_svc_max_data_length)() function is part of libtirpc.

# [SEE ALSO](#SEE_ALSO)

[rpc(3)](/man/os/libtirpc/rpc.3), [gssapi(3)](/man/os/libtirpc/gssapi.3), [rpcsec\_gss(3)](/man/os/libtirpc/rpcsec_gss.3)

# [AUTHORS](#AUTHORS)

This manual page was written by Doug Rabson ⟨dfr@FreeBSD.org⟩.

January 26, 2010 Linux 4.19.0-gvisor

---

Document: rpc_gss_svc_max_data_length(3t) from libtirpc 1.3.8-r0 (Chainguard OS)
Source: https://downloads.sourceforge.net/project/libtirpc/libtirpc/1.3.8/libtirpc-1.3.8.tar.bz2
