Debian Codegraph @

upstream/debian-unstable/man2/IP_RECVOPTS.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_RECVOPTS 2const 2025-11-25 "Linux man-pages 6.18"
6 .SH NAME
7 IP_RECVOPTS
8 \-
9 receive all 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_RECVOPTS,
19 .BI " const\~int\~*" enable ,\~sizeof(int));
20 .fi
21 .SH DESCRIPTION
22 Pass all incoming IP options to the user in a
23 .BR IP_OPTIONS (2const)
24 control message.
25 .P
26 The routing header and other options are already filled in
27 for the local host.
28 .P
29 Not supported for
30 .B SOCK_STREAM
31 sockets.
32 .SH ERRORS
33 See
34 .BR IPPROTO_IP (2const).
35 See
36 .BR setsockopt (2).
37 See
38 .BR ip (7).
39 .SH HISTORY
40 Linux 2.2.
41 .\" Precisely: since Linux 2.1.15
42 .SH SEE ALSO
43 .BR IPPROTO_IP (2const),
44 .BR setsockopt (2),
45 .BR ip (7)