1gnutls_dtls_set_data_mtu(3)         gnutls         gnutls_dtls_set_data_mtu(3)
2
3
4

NAME

6       gnutls_dtls_set_data_mtu - API function
7

SYNOPSIS

9       #include <gnutls/dtls.h>
10
11       int  gnutls_dtls_set_data_mtu(gnutls_session_t  session,  unsigned  int
12       mtu);
13

ARGUMENTS

15       gnutls_session_t session
16                   is a gnutls_session_t type.
17
18       unsigned int mtu
19                   The maximum unencrypted transfer unit of the session
20

DESCRIPTION

22       This function will set the maximum size of  the  *unencrypted*  records
23       which will be sent over a DTLS session. It is equivalent to calculating
24       the DTLS packet overhead with the current  encryption  parameters,  and
25       calling  gnutls_dtls_set_mtu()  with  that  value.  In particular, this
26       means that you may need to call this function again after any  negotia‐
27       tion  or renegotiation, in order to ensure that the MTU is still suffi‐
28       cient to account for the new protocol overhead.
29
30       In most cases you only need to call gnutls_dtls_set_mtu() with the max‐
31       imum MTU of your transport layer.
32

RETURNS

34       GNUTLS_E_SUCCESS (0) on success, or a negative error code.
35

SINCE

37       3.1
38

REPORTING BUGS

40       Report bugs to <bugs@gnutls.org>.
41       Home page: https://www.gnutls.org
42
43
45       Copyright © 2001- Free Software Foundation, Inc., and others.
46       Copying  and  distribution  of this file, with or without modification,
47       are permitted in any medium without royalty provided the copyright  no‐
48       tice and this notice are preserved.
49

SEE ALSO

51       The  full  documentation  for gnutls is maintained as a Texinfo manual.
52       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
53       visit
54
55       https://www.gnutls.org/manual/
56
57gnutls                               3.7.6         gnutls_dtls_set_data_mtu(3)
Impressum