| 1 |
.\" Copyright, the authors of the Linux man-pages project |
| 2 |
.\" |
| 3 |
.\" SPDX-License-Identifier: Linux-man-pages-copyleft |
| 4 |
.\" |
| 5 |
.TH IP_ROUTER_ALERT 2const 2025-11-25 "Linux man-pages 6.18" |
| 6 |
.SH NAME |
| 7 |
IP_ROUTER_ALERT |
| 8 |
\- |
| 9 |
pass all to-be forwarded packets |
| 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_ROUTER_ALERT, |
| 19 |
.BI " const\~int\~*" enable ,\~sizeof(int)); |
| 20 |
.fi |
| 21 |
.SH DESCRIPTION |
| 22 |
Pass all to-be forwarded packets with the |
| 23 |
IP Router Alert option set to this socket. |
| 24 |
.P |
| 25 |
Valid only for raw sockets. |
| 26 |
.P |
| 27 |
This is useful, for instance, for user-space RSVP daemons. |
| 28 |
.SH ERRORS |
| 29 |
See |
| 30 |
.BR IPPROTO_IP (2const). |
| 31 |
See |
| 32 |
.BR setsockopt (2). |
| 33 |
See |
| 34 |
.BR ip (7). |
| 35 |
.SH STANDARDS |
| 36 |
Linux. |
| 37 |
.SH HISTORY |
| 38 |
Linux 2.2. |
| 39 |
.\" Precisely: since Linux 2.1.68 |
| 40 |
.SH CAVEATS |
| 41 |
The tapped packets are not forwarded by the kernel; |
| 42 |
it is the user's responsibility to send them out again. |
| 43 |
.P |
| 44 |
Socket binding is ignored, |
| 45 |
such packets are filtered only by protocol. |
| 46 |
.SH SEE ALSO |
| 47 |
.BR IPPROTO_IP (2const), |
| 48 |
.BR setsockopt (2), |
| 49 |
.BR ip (7) |