Debian Codegraph @

upstream/debian-unstable/man2/IPV6_ROUTER_ALERT.2const

raw
1 .\" Copyright, the authors of the Linux man-pages project
2 .\"
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
4 .\"
5 .TH IPV6_ROUTER_ALERT 2const 2025-12-02 "Linux man-pages 6.18"
6 .SH NAME
7 IPV6_ROUTER_ALERT
8 \-
9 pass forwarded packets containing a router alert hop-by-hop to this socket
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_IPV6,\~IPV6_ROUTER_ALERT,
19 .BI " const\~int\~*" val ,\~sizeof(int));
20 .fi
21 .SH DESCRIPTION
22 Pass forwarded packets containing a router alert hop-by-hop option to
23 this socket.
24 .P
25 Allowed only for
26 .B SOCK_RAW
27 sockets.
28 .P
29 The tapped packets are not forwarded by the kernel,
30 it is the user's responsibility to send them out again.
31 .P
32 A positive integer indicates a router alert option value to intercept.
33 Packets carrying a router alert option
34 with a value field containing this integer
35 will be delivered to the socket.
36 A negative integer disables delivery of packets
37 with router alert options
38 to this socket.
39 .SH ERRORS
40 See
41 .BR IPPROTO_IPV6 (2const).
42 See
43 .BR setsockopt (2).
44 See
45 .BR ipv6 (7).
46 .SH SEE ALSO
47 .BR IPPROTO_IPV6 (2const),
48 .BR setsockopt (2),
49 .BR cmsg (3),
50 .BR ipv6 (7)