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 a gnutls_session_t type. 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:


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