Debian Codegraph @

upstream/debian-unstable/man2/IP_RECVTOS.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_RECVTOS 2const 2025-11-25 "Linux man-pages 6.18"
6 .SH NAME
7 IP_RECVTOS
8 \-
9 receive IP_TOS 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_RECVTOS,
19 .BI " const\~int\~*" enable ,\~sizeof(int));
20 .fi
21 .SH DESCRIPTION
22 If enabled,
23 the
24 .BR IP_TOS (2const)
25 ancillary message is passed with incoming packets.
26 It contains a byte which specifies the Type of Service/Precedence
27 field of the packet header.
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.68
42 .SH SEE ALSO
43 .BR IPPROTO_IP (2const),
44 .BR setsockopt (2),
45 .BR ip (7)