---
name: "rpc_gss_svc_max_data_length"
section: "3t"
platform: "linux"
package: "libtirpc"
version: "1.3.8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/rpc_gss_svc_max_data_length/3t"
---

# rpc\_gss\_svc\_max\_data\_length(3t)

calculate maximum data size

## NAME

**rpc\_gss\_svc\_max\_data\_length** – calculate maximum data size

## SYNOPSIS

**#include \<rpc/rpcsec\_gss.h\>**

*int*\

**rpc\_gss\_svc\_max\_data\_length**(*struct svc\_req \*req*, *int max\_tp\_unit\_len*);

## 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

- req

  An RPC request

- max\_tp\_unit\_len

  Maximum packet size of the underlying transport protocol

## RETURN VALUES

The maximum message size that can be encoded

## AVAILABILITY

The **rpc\_gss\_svc\_max\_data\_length**() function is part of libtirpc.

## SEE ALSO

[rpc(3)](/rpc/3.md), [gssapi(3)](/gssapi/3.md), [rpcsec\_gss(3)](/rpcsec_gss/3.md)

## AUTHORS

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