diff options
| author | Alejandro Colomar <alx@kernel.org> | 2025-11-24 21:35:52 +0100 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2025-11-25 01:10:29 +0100 |
| commit | 1538284faf9005cdfd8ef973f5aeaa046ffa35c2 (patch) | |
| tree | 981b0d6cf5f6629728cb2946a3e84991f0772456 | |
| parent | 65e44e27794c5881e5ab5a3d58d9f815403cdd93 (diff) | |
| download | man-pages-1538284faf9005cdfd8ef973f5aeaa046ffa35c2.tar.gz | |
man/man2const/{IPPROTO_IP,IP_ROUTER_ALERT}.2const: Split IP_ROUTER_ALERT from IPPROTO_IP(2const)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
| -rw-r--r-- | man/man2const/IPPROTO_IP.2const | 18 | ||||
| -rw-r--r-- | man/man2const/IP_ROUTER_ALERT.2const | 46 |
2 files changed, 49 insertions, 15 deletions
diff --git a/man/man2const/IPPROTO_IP.2const b/man/man2const/IPPROTO_IP.2const index c84b5c2631..e80d8606ac 100644 --- a/man/man2const/IPPROTO_IP.2const +++ b/man/man2const/IPPROTO_IP.2const @@ -118,18 +118,8 @@ fail with the error .BR IP_RECVTTL (2const) .TQ .BR IP_RETOPTS (2const) -.TP -.BR IP_ROUTER_ALERT " (since Linux 2.2)" -.\" Precisely: since Linux 2.1.68 -Pass all to-be forwarded packets with the -IP Router Alert option set to this socket. -Valid only for raw sockets. -This is useful, for instance, for user-space RSVP daemons. -The tapped packets are not forwarded by the kernel; -it is the user's responsibility to send them out again. -Socket binding is ignored, -such packets are filtered only by protocol. -Expects an integer flag. +.TQ +.BR IP_ROUTER_ALERT (2const) .TP .BR IP_TOS " (since Linux 1.0)" Set or receive the Type-Of-Service (TOS) field that is sent @@ -261,10 +251,8 @@ See See .BR ip (7). .SH NOTES -.BR IP_ROUTER_ALERT , -and .B IP_TRANSPARENT -are Linux-specific. +is Linux-specific. .\" IP_XFRM_POLICY is Linux-specific .\" IP_IPSEC_POLICY is a nonstandard extension, also present on some BSDs .SH SEE ALSO diff --git a/man/man2const/IP_ROUTER_ALERT.2const b/man/man2const/IP_ROUTER_ALERT.2const new file mode 100644 index 0000000000..d172af3881 --- /dev/null +++ b/man/man2const/IP_ROUTER_ALERT.2const @@ -0,0 +1,46 @@ +.\" Copyright, the authors of the Linux man-pages project +.\" +.\" SPDX-License-Identifier: Linux-man-pages-copyleft +.\" +.TH IP_ROUTER_ALERT 2const (date) "Linux man-pages (unreleased)" +.SH NAME +IP_ROUTER_ALERT +\- +pass all to-be forwarded packets +.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_ROUTER_ALERT, +.BI " const\~int\~*" enable ,\~sizeof(int)); +.fi +.SH DESCRIPTION +.TP +.BR IP_ROUTER_ALERT " (since Linux 2.2)" +.\" Precisely: since Linux 2.1.68 +Pass all to-be forwarded packets with the +IP Router Alert option set to this socket. +Valid only for raw sockets. +This is useful, for instance, for user-space RSVP daemons. +The tapped packets are not forwarded by the kernel; +it is the user's responsibility to send them out again. +Socket binding is ignored, +such packets are filtered only by protocol. +Expects an integer flag. +.SH ERRORS +See +.BR IPPROTO_IP (2const). +See +.BR setsockopt (2). +See +.BR ip (7). +.SH STANDARDS +Linux. +.SH SEE ALSO +.BR IPPROTO_IP (2const), +.BR setsockopt (2), +.BR ip (7) |
