Debian Codegraph @

upstream/debian-unstable/man2/IP_RETOPTS.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_RETOPTS 2const 2025-11-25 "Linux man-pages 6.18"
6 .SH NAME
7 IP_RETOPTS
8 \-
9 receive most incoming IP options in control message
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_IP,\~IP_RETOPTS,
19 .BI " const\~int\~*" enabled ,\~sizeof(int));
20 .fi
21 .SH DESCRIPTION
22 Identical to
23 .BR IP_RECVOPTS (2const),
24 but returns raw unprocessed options with timestamp and route record
25 options not filled in for this hop.
26 .P
27 Not supported for
28 .B SOCK_STREAM
29 sockets.
30 .SH ERRORS
31 See
32 .BR IPPROTO_IP (2const).
33 See
34 .BR setsockopt (2).
35 See
36 .BR ip (7).
37 .SH HISTORY
38 Linux 2.2.
39 .\" Precisely: since Linux 2.1.15
40 .SH SEE ALSO
41 .BR IPPROTO_IP (2const),
42 .BR setsockopt (2),
43 .BR ip (7)