Debian Codegraph @

upstream/debian-unstable/man2/IPV6_MTU.2const

raw
1 .\" Copyright, the authors of the Linux man-pages project
2 .\"
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
4 .\"
5 .TH IPV6_MTU 2const 2025-12-02 "Linux man-pages 6.18"
6 .SH NAME
7 IPV6_MTU
8 \-
9 path maximum transmission unit size
10 .SH LIBRARY
11 Standard C library
12 .RI ( libc ,\~ \-lc )
13 .SH SYNOPSIS
14 .nf
15 .BR "#include <netinet/in.h>" " /* Definition of " IP* " constants */"
16 .B #include <sys/socket.h>
17 .P
18 .BI int\~setsockopt(int\~ sockfd ,\~IPPROTO_IPV6,\~IPV6_MTU,
19 .BI " const\~int\~*" val ,\~sizeof(int));
20 .BI int\~getsockopt(int\~ sockfd ,\~IPPROTO_IPV6,\~IPV6_MTU,
21 .BI " int\~*" val ,\~sizeof(int));
22 .fi
23 .SH DESCRIPTION
24 .TP
25 .BR getsockopt ():
26 Retrieve the current known path MTU of the current socket.
27 Valid only when the socket has been connected.
28 .TP
29 .BR setsockopt ():
30 Set the MTU to be used for the socket.
31 The MTU is limited by the device
32 MTU or the path MTU when path MTU discovery is enabled.
33 .SH ERRORS
34 See
35 .BR IPPROTO_IPV6 (2const).
36 See
37 .BR setsockopt (2).
38 See
39 .BR ipv6 (7).
40 .SH SEE ALSO
41 .BR IPPROTO_IPV6 (2const),
42 .BR setsockopt (2),
43 .BR ipv6 (7)