icmp6.4 (cfe30d02adda7c3b5c76156ac52d50d8cab325d9) icmp6.4 (7f98104d1f2fd764326a0513a8b1241d681bf89d)
1.\" $KAME: icmp6.4,v 1.6 2004/12/27 05:30:56 itojun Exp $
2.\" $OpenBSD: icmp6.4,v 1.19 2004/12/23 20:33:03 jaredy Exp $
3.\"
4.\" Copyright (c) 1986, 1991, 1993
5.\" The Regents of the University of California. All rights reserved.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions

--- 16 unchanged lines hidden (view full) ---

25.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29.\" SUCH DAMAGE.
30.\"
31.\" $FreeBSD$
32.\"
1.\" $KAME: icmp6.4,v 1.6 2004/12/27 05:30:56 itojun Exp $
2.\" $OpenBSD: icmp6.4,v 1.19 2004/12/23 20:33:03 jaredy Exp $
3.\"
4.\" Copyright (c) 1986, 1991, 1993
5.\" The Regents of the University of California. All rights reserved.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions

--- 16 unchanged lines hidden (view full) ---

25.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29.\" SUCH DAMAGE.
30.\"
31.\" $FreeBSD$
32.\"
33.Dd November 7, 2012
33.Dd November 1, 2018
34.Dt ICMP6 4
35.Os
36.Sh NAME
37.Nm icmp6
38.Nd Internet Control Message Protocol for IPv6
39.Sh SYNOPSIS
40.In sys/socket.h
41.In netinet/in.h

--- 141 unchanged lines hidden (view full) ---

183The
184.Vt icmp6_filter
185structure may be used to refine the input message set according to the
186ICMPv6 type.
187By default, all messages types are allowed on newly created raw ICMPv6
188sockets.
189The following macros may be used to refine the input set:
190.Bl -tag -width Ds
34.Dt ICMP6 4
35.Os
36.Sh NAME
37.Nm icmp6
38.Nd Internet Control Message Protocol for IPv6
39.Sh SYNOPSIS
40.In sys/socket.h
41.In netinet/in.h

--- 141 unchanged lines hidden (view full) ---

183The
184.Vt icmp6_filter
185structure may be used to refine the input message set according to the
186ICMPv6 type.
187By default, all messages types are allowed on newly created raw ICMPv6
188sockets.
189The following macros may be used to refine the input set:
190.Bl -tag -width Ds
191.It Fn "void ICMP6_FILTER_SETPASSALL" "struct icmp6_filter *filterp"
191.It Ft void Fn ICMP6_FILTER_SETPASSALL "struct icmp6_filter *filterp"
192Allow all incoming messages.
193.Va filterp
194is modified to allow all message types.
192Allow all incoming messages.
193.Va filterp
194is modified to allow all message types.
195.It Fn "void ICMP6_FILTER_SETBLOCKALL" "struct icmp6_filter *filterp"
195.It Ft void Fn ICMP6_FILTER_SETBLOCKALL "struct icmp6_filter *filterp"
196Ignore all incoming messages.
197.Va filterp
198is modified to ignore all message types.
199.It Xo
200.Ft void
201.Fn ICMP6_FILTER_SETPASS "int type" "struct icmp6_filter *filterp"
202.Xc
203Allow ICMPv6 messages with the given
204.Fa type .
205.Va filterp
206is modified to allow such messages.
207.It Xo
208.Ft void
196Ignore all incoming messages.
197.Va filterp
198is modified to ignore all message types.
199.It Xo
200.Ft void
201.Fn ICMP6_FILTER_SETPASS "int type" "struct icmp6_filter *filterp"
202.Xc
203Allow ICMPv6 messages with the given
204.Fa type .
205.Va filterp
206is modified to allow such messages.
207.It Xo
208.Ft void
209.Fn ICMP6_FILTER_SETBLOCK" "int type" "struct icmp6_filter *filterp"
209.Fn ICMP6_FILTER_SETBLOCK "int type" "struct icmp6_filter *filterp"
210.Xc
211Ignore ICMPv6 messages with the given
212.Fa type .
213.Va filterp
214is modified to ignore such messages.
215.It Xo
216.Ft int
210.Xc
211Ignore ICMPv6 messages with the given
212.Fa type .
213.Va filterp
214is modified to ignore such messages.
215.It Xo
216.Ft int
217.Fn ICMP6_FILTER_WILLPASS" "int type" "const struct icmp6_filter *filterp"
217.Fn ICMP6_FILTER_WILLPASS "int type" "const struct icmp6_filter *filterp"
218.Xc
219Determine if the given filter will allow an ICMPv6 message of the given
220type.
221.It Xo
222.Ft int
218.Xc
219Determine if the given filter will allow an ICMPv6 message of the given
220type.
221.It Xo
222.Ft int
223.Fn ICMP6_FILTER_WILLBLOCK" "int type" "const struct icmp6_filter *filterp"
223.Fn ICMP6_FILTER_WILLBLOCK "int type" "const struct icmp6_filter *filterp"
224.Xc
225Determine if the given filter will ignore an ICMPv6 message of the given
226type.
227.El
228.Pp
229The
230.Xr getsockopt 2
231and

--- 26 unchanged lines hidden (view full) ---

258.Rs
259.%A A. Conta
260.%A S. Deering
261.%T "Internet Control Message Protocol (ICMPv6) for the Internet" \
262 "Protocol Version 6 (IPv6) Specification"
263.%N RFC 2463
264.%D December 1998
265.Re
224.Xc
225Determine if the given filter will ignore an ICMPv6 message of the given
226type.
227.El
228.Pp
229The
230.Xr getsockopt 2
231and

--- 26 unchanged lines hidden (view full) ---

258.Rs
259.%A A. Conta
260.%A S. Deering
261.%T "Internet Control Message Protocol (ICMPv6) for the Internet" \
262 "Protocol Version 6 (IPv6) Specification"
263.%N RFC 2463
264.%D December 1998
265.Re
266.Rs
267.%A W. Stevens
268.%A M. Thomas
269.%A E. Nordmark
270.%A T. Jinmei
271.%T "Advanced Sockets Application Program Interface (API) for IPv6"
272.%R RFC 3542
273.%D May 2003
274.Re
275.Rs
276.%A A. Conta
277.%A S. Deering
278.%A M. Gupta
279.%T "Internet Control Message Protocol (ICMPv6) for the Internet" \
280 "Protocol Version 6 (IPv6) Specification"
281.%R RFC 4443
282.%D March 2006
283.Re