Debian Codegraph @

upstream/debian-unstable/man2/IP_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 IP_MTU 2const 2025-11-25 "Linux man-pages 6.18"
6 .SH NAME
7 IP_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\~getsockopt(int\~ sockfd ,\~IPPROTO_IP,\~IP_MTU,
19 .BI " int\~*" val ,\~sizeof(int));
20 .fi
21 .SH DESCRIPTION
22 Retrieve the current known path MTU of the current socket.
23 .P
24 .B IP_MTU
25 is valid only for
26 .BR getsockopt (2),
27 and can be employed only when the socket has been connected.
28 .SH ERRORS
29 See
30 .BR IPPROTO_IP (2const).
31 See
32 .BR getsockopt (2).
33 See
34 .BR ip (7).
35 .SH STANDARDS
36 Linux.
37 .SH HISTORY
38 Linux 2.2.
39 .\" Precisely: since Linux 2.1.124
40 .SH SEE ALSO
41 .BR IPPROTO_IP (2const),
42 .BR getsockopt (2),
43 .BR ip (7)