icmp6.4 (210676) | icmp6.4 (231564) |
---|---|
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 --- 14 unchanged lines hidden (view full) --- 23.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 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.\" | 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 --- 14 unchanged lines hidden (view full) --- 23.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 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: head/share/man/man4/icmp6.4 210676 2010-07-31 12:14:28Z joel $ | 31.\" $FreeBSD: head/share/man/man4/icmp6.4 231564 2012-02-12 18:29:56Z ed $ |
32.\" 33.Dd December 20, 2004 34.Dt ICMP6 4 35.Os 36.Sh NAME 37.Nm icmp6 38.Nd Internet Control Message Protocol for IPv6 39.Sh SYNOPSIS --- 95 unchanged lines hidden (view full) --- 135.El 136.Ss Headers 137All ICMPv6 messages are prefixed with an ICMPv6 header. 138This header corresponds to the 139.Vt icmp6_hdr 140structure and has the following definition: 141.Bd -literal -offset indent 142struct icmp6_hdr { | 32.\" 33.Dd December 20, 2004 34.Dt ICMP6 4 35.Os 36.Sh NAME 37.Nm icmp6 38.Nd Internet Control Message Protocol for IPv6 39.Sh SYNOPSIS --- 95 unchanged lines hidden (view full) --- 135.El 136.Ss Headers 137All ICMPv6 messages are prefixed with an ICMPv6 header. 138This header corresponds to the 139.Vt icmp6_hdr 140structure and has the following definition: 141.Bd -literal -offset indent 142struct icmp6_hdr { |
143 u_int8_t icmp6_type; /* type field */ 144 u_int8_t icmp6_code; /* code field */ 145 u_int16_t icmp6_cksum; /* checksum field */ | 143 uint8_t icmp6_type; /* type field */ 144 uint8_t icmp6_code; /* code field */ 145 uint16_t icmp6_cksum; /* checksum field */ |
146 union { | 146 union { |
147 u_int32_t icmp6_un_data32[1]; /* type-specific */ 148 u_int16_t icmp6_un_data16[2]; /* type-specific */ 149 u_int8_t icmp6_un_data8[4]; /* type-specific */ | 147 uint32_t icmp6_un_data32[1]; /* type-specific */ 148 uint16_t icmp6_un_data16[2]; /* type-specific */ 149 uint8_t icmp6_un_data8[4]; /* type-specific */ |
150 } icmp6_dataun; 151} __packed; 152 153#define icmp6_data32 icmp6_dataun.icmp6_un_data32 154#define icmp6_data16 icmp6_dataun.icmp6_un_data16 155#define icmp6_data8 icmp6_dataun.icmp6_un_data8 156#define icmp6_pptr icmp6_data32[0] /* parameter prob */ 157#define icmp6_mtu icmp6_data32[0] /* packet too big */ --- 108 unchanged lines hidden --- | 150 } icmp6_dataun; 151} __packed; 152 153#define icmp6_data32 icmp6_dataun.icmp6_un_data32 154#define icmp6_data16 icmp6_dataun.icmp6_un_data16 155#define icmp6_data8 icmp6_dataun.icmp6_un_data8 156#define icmp6_pptr icmp6_data32[0] /* parameter prob */ 157#define icmp6_mtu icmp6_data32[0] /* packet too big */ --- 108 unchanged lines hidden --- |