gnutls_dtls_set_mtu(3)
๐ gnutls_dtls_set_mtu(3) ๐
okay bestie, welcome to the gnutls manual page for gnutls_dtls_set_mtu ๐ yes this is the one, the DTLS MTU setter, and honestly? she's simple, she's iconic, she does exactly one thing. let's get into it โจ
๐ธ NAME ๐ธ
gnutls_dtls_set_mtu โ it's an API function, that's the whole vibe ๐
๐ฆ SYNOPSIS ๐ฆ
#include <gnutls/dtls.h>
void gnutls_dtls_set_mtu(gnutls_session_t session, unsigned int mtu);
like, look at her. two args, returns nothing, zero drama ๐
โจ ARGUMENTS โจ
gnutls_session_t sessionโ bestie this is agnutls_session_ttype. that's it, that's the whole description, she is what she is ๐unsigned int mtuโ the maximum transfer unit of the transport ๐ซถ
๐ DESCRIPTION ๐
so here's the tea ๐ this function will set the maximum transfer unit of the transport that DTLS packets are sent over.
โ ๏ธ okay important, do NOT skip this part: this should exclude the IP (or IPv6) and UDP headers. like, those headers are not invited to this party ๐
so for DTLS over IPv6 on an Ethernet device with MTU 1500, the DTLS MTU you'd set with this function would be:
1500 - 40 (IPV6 header) - 8 (UDP header) = 1452
math ate, no cap ๐งฎโจ 1500 minus 40 minus 8, and boom, 1452. that's the number you pass in. the way that works out so cleanly?? obsessed ๐ญ
โญ SINCE โญ
3.0 โ she's been here since the beginning of the 3.x era, a true veteran queen ๐
๐ REPORTING BUGS ๐
found a bug? don't be shy, tell the girlies:
- Report bugs to <bugs@gnutls.org>. ๐ง
- Home page: https://www.gnutls.org ๐
๐ COPYRIGHT ๐
Copyright ยฉ 2001-2023 Free Software Foundation, Inc., and others. ๐ซถ
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. periodt ๐
๐ SEE ALSO ๐
the full documentation for gnutls is maintained as a Texinfo manual, iykyk ๐
if the /usr/share/doc/gnutls/ directory does not contain the HTML form, visit:
https://www.gnutls.org/manual/
and that's the whole page bestie!! this was gnutls 3.8.13, the gnutls_dtls_set_mtu(3) page, brought to you by the gnutls girlies ๐ mwah, go set some MTUs, ily, bye!! ๐๐ฆ๐ธ
๐ฆ where this page comes from
- alpine 3.22: gnutls-doc 3.8.13-r0 ยท LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 ยท LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 ยท LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 ยท GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 ยท GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 ยท GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 ยท GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 ยท GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms