Commit 92b859f3 authored by Mikio Hara's avatar Mikio Hara

ipv6: update icmp parameters

Updates golang/go#24440.

Change-Id: Idbe22ca853ea4771bb979782ef3bac8b03c59b87
Reviewed-on: https://go-review.googlesource.com/63998
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 344b2e31
...@@ -80,7 +80,7 @@ var registries = []struct { ...@@ -80,7 +80,7 @@ var registries = []struct {
func geniana() error { func geniana() error {
var bb bytes.Buffer var bb bytes.Buffer
fmt.Fprintf(&bb, "// go generate gen.go\n") fmt.Fprintf(&bb, "// go generate gen.go\n")
fmt.Fprintf(&bb, "// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT\n\n") fmt.Fprintf(&bb, "// Code generated by the command above; DO NOT EDIT.\n\n")
fmt.Fprintf(&bb, "package ipv6\n\n") fmt.Fprintf(&bb, "package ipv6\n\n")
for _, r := range registries { for _, r := range registries {
resp, err := http.Get(r.url) resp, err := http.Get(r.url)
......
// go generate gen.go // go generate gen.go
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT // Code generated by the command above; DO NOT EDIT.
package ipv6 package ipv6
// Internet Control Message Protocol version 6 (ICMPv6) Parameters, Updated: 2015-07-07 // Internet Control Message Protocol version 6 (ICMPv6) Parameters, Updated: 2018-03-09
const ( const (
ICMPTypeDestinationUnreachable ICMPType = 1 // Destination Unreachable ICMPTypeDestinationUnreachable ICMPType = 1 // Destination Unreachable
ICMPTypePacketTooBig ICMPType = 2 // Packet Too Big ICMPTypePacketTooBig ICMPType = 2 // Packet Too Big
...@@ -40,9 +40,11 @@ const ( ...@@ -40,9 +40,11 @@ const (
ICMPTypeDuplicateAddressRequest ICMPType = 157 // Duplicate Address Request ICMPTypeDuplicateAddressRequest ICMPType = 157 // Duplicate Address Request
ICMPTypeDuplicateAddressConfirmation ICMPType = 158 // Duplicate Address Confirmation ICMPTypeDuplicateAddressConfirmation ICMPType = 158 // Duplicate Address Confirmation
ICMPTypeMPLControl ICMPType = 159 // MPL Control Message ICMPTypeMPLControl ICMPType = 159 // MPL Control Message
ICMPTypeExtendedEchoRequest ICMPType = 160 // Extended Echo Request
ICMPTypeExtendedEchoReply ICMPType = 161 // Extended Echo Reply
) )
// Internet Control Message Protocol version 6 (ICMPv6) Parameters, Updated: 2015-07-07 // Internet Control Message Protocol version 6 (ICMPv6) Parameters, Updated: 2018-03-09
var icmpTypes = map[ICMPType]string{ var icmpTypes = map[ICMPType]string{
1: "destination unreachable", 1: "destination unreachable",
2: "packet too big", 2: "packet too big",
...@@ -79,4 +81,6 @@ var icmpTypes = map[ICMPType]string{ ...@@ -79,4 +81,6 @@ var icmpTypes = map[ICMPType]string{
157: "duplicate address request", 157: "duplicate address request",
158: "duplicate address confirmation", 158: "duplicate address confirmation",
159: "mpl control message", 159: "mpl control message",
160: "extended echo request",
161: "extended echo reply",
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment