aboutsummaryrefslogtreecommitdiffstats
path: root/man/man2const/IP_RECVTOS.2const
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2025-11-25 00:32:05 +0100
committerAlejandro Colomar <alx@kernel.org>2025-11-25 01:10:35 +0100
commit582fce4c02b32ecfc75351c3494cbf4f307f5b6b (patch)
tree65621bce4517dfb0392efbeeb2bb68ac26a88c49 /man/man2const/IP_RECVTOS.2const
parente11a82a6f7098b94bcd00fb767a1db269e3a83db (diff)
parent869bbbf4705313f690e85ad09b9b300b9f846165 (diff)
downloadman-pages-master.tar.gz
man/: Make sashimi of ip(7)HEADmaster
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man/man2const/IP_RECVTOS.2const')
-rw-r--r--man/man2const/IP_RECVTOS.2const45
1 files changed, 45 insertions, 0 deletions
diff --git a/man/man2const/IP_RECVTOS.2const b/man/man2const/IP_RECVTOS.2const
new file mode 100644
index 0000000000..e246b187d7
--- /dev/null
+++ b/man/man2const/IP_RECVTOS.2const
@@ -0,0 +1,45 @@
+.\" Copyright, the authors of the Linux man-pages project
+.\"
+.\" SPDX-License-Identifier: Linux-man-pages-copyleft
+.\"
+.TH IP_RECVTOS 2const (date) "Linux man-pages (unreleased)"
+.SH NAME
+IP_RECVTOS
+\-
+receive IP_TOS control message
+.SH LIBRARY
+Standard C library
+.RI ( libc ,\~ \-lc )
+.SH SYNOPSIS
+.nf
+.BR "#include <netinet/in.h>" " /* Definition of " IP* " constants */"
+.B #include <sys/socket.h>
+.P
+.BI int\~setsockopt(int\~ sockfd ,\~IPPROTO_IP,\~IP_RECVTOS,
+.BI " const\~int\~*" enable ,\~sizeof(int));
+.fi
+.SH DESCRIPTION
+If enabled,
+the
+.BR IP_TOS (2const)
+ancillary message is passed with incoming packets.
+It contains a byte which specifies the Type of Service/Precedence
+field of the packet header.
+.P
+Not supported for
+.B SOCK_STREAM
+sockets.
+.SH ERRORS
+See
+.BR IPPROTO_IP (2const).
+See
+.BR setsockopt (2).
+See
+.BR ip (7).
+.SH HISTORY
+Linux 2.2.
+.\" Precisely: since Linux 2.1.68
+.SH SEE ALSO
+.BR IPPROTO_IP (2const),
+.BR setsockopt (2),
+.BR ip (7)